@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: black;
    color: white;
}


.logo {
    font-size: 3rem;
    color: black; /* changed from black to white */
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
    visibility: hidden;
}

.logo:hover {
    transform: scale(1.1);
}

nav a {
    font-size: 1.8rem;
    color:white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

/* ---------- HOME SECTION ---------- */
.home {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap; /* responsive */
}

.homecontent {
    flex: 1 1 400px;
    order: 2;
}

.homecontent h1 {
    font-size: 4rem;
}

.homecontent h1 span {
    color: #b74b4b;
}

.homecontent h3 {
    font-size: 2.5rem;
    margin: 1rem 0;
}

.homecontent p {
    font-size: 1.6rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.home-img {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 1;
}

.home-img img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(183, 75, 75, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(183, 75, 75, 0.9);
}

/* Social Icons */
.social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    color: white;
    transition: 0.3s ease;
}

.social a:hover {
    color: black;
    transform: scale(1.3) translate(-5px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 55px;
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #6a11cb, #2575fc, #00c6ff);
    background-size: 400% 400%;
    border-radius: 50px;
    box-shadow: 0 0 15px rgba(37,117,252,0.6), 0 0 25px rgba(0,198,255,0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: gradientShift 6s ease infinite;
}

.btn:hover {
    background: #922d2d;
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 0 25px rgba(37,117,252,0.5), 0 0 35px rgba(0,198,255,0.6);
}

/* ---------- MEDIA QUERIES ---------- */
@media (max-width: 480px) {
    .home {
        flex-direction: column;
        text-align: center;
    }

    .homecontent {
        order: 2;
        margin-top: 20px;
    }

    .home-img {
        order: 1;
    }

    .home-img img {
        width: 180px;
        height: 180px;
    }

    nav {
        position: absolute; 
        top: 100%; 
        right: 0; 
        width: 40%;
        border-left: 3px solid #b74b4b; 
        border-bottom: 0.5rem solid #b74b4b; 
        border-top: 0.1rem solid rgba(255, 255, 255, 0.3);
        background-color: #161616;
        display: none;
    }

    nav.active {
        display: block;
    }

    nav a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    nav a:hover,
    nav.active a {
        padding: 1rem;
        border-radius: 0.5rem;
        border-bottom: 0.5rem solid #b74b4b;
    }
}

/* Typing Effect */
.typing {
    color: red;
    font-weight: bold;
}

/* ---------- SERVICES ---------- */
#services {
    margin-bottom: 7rem;
    padding: 80px 150px;
    background-color: #1e1e1e;
    text-align: center;
    margin-top: 7rem;
}

.section-title {
 font-size: clamp(2rem, 5vw, 3rem);
color: #fff;
text-align: center;
margin-bottom: 2rem;
position: relative;
}
.section-title::after {
content: "";
display: block;
width: 15%; /* instead of fixed 60px, gumamit tayo ng percent */
max-width: 80px; /* limit para hindi sobrang haba */
height: 4px; /* guhit kapal */
background-color: #b74b4b;
margin: 0.5rem auto 0; /* gitna */
border-radius: 2px;
animation: expandLine 1s ease forwards;
}
@keyframes expandLine {
  from{
    width: 0;
  }
  to{
    width: 15%;
  }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 2rem;
}

.service-card {
    background: #222;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(183,75,75,0.5);
}

.service-card .icon {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1.4rem;
    color: #ccc;
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .service-card { padding: 25px 15px; }
}

    /* ---------- SKILLS SECTION ---------- */
#skills {
    margin-bottom: 7rem;
    padding: 80px 12%;
    text-align: center;
    background: linear-gradient(135deg, #1c1c1c, #121212);
}

#skills h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

#skills h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #b74b4b);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.skills-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 2rem;
}

.skill {
    background: #222;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    width: 320px;
    gap: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.5);
}

.skill img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.skill img:hover { transform: scale(1.15); }

.skill-info {
    flex: 1;
}

.skill p {
    margin: 0;
    font-weight: 500;
    color: #fff;
    font-size: 1.4rem;
    display: flex;
    justify-content: space-between;
}

.bar {
    width: 100%;
    height: 10px;
    background-color: #333;
    border-radius: 50px;
    overflow: hidden;
    margin-top: 0.5rem;
    position: relative;
}

.progress {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #f39c12, #e67e22);
    border-radius: 50px;
    transition: width 1s ease-in-out;
}

.skill:hover .progress { filter: brightness(1.2); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    #skills { padding: 60px 8%; }
    .skill { width: 100%; }
}

@media (max-width: 480px) {
    .skills-container { flex-direction: column; gap: 1.5rem; }
    #skills h2 { font-size: 2rem; }
    .bar { height: 8px; }
}

/* ---------- PROJECTS SECTION ---------- */
#projects {
    margin-bottom: 7rem;
    padding: 80px 12%;
    background: linear-gradient(135deg, #1a1a1a, #111);
    text-align: center;
}

#projects h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    margin-bottom: 3rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
}

#projects h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #b74b4b);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---------- CARD STYLE ---------- */
.project-card {
    background: #222;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

/* ---------- CONTENT ---------- */
.project-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.project-card h3 {
    font-size: 1.6rem;
    margin: 0 0 10px;
    color: #fff;
    font-weight: 600;
}

.project-card p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* ---------- TECH STACK TAGS ---------- */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tech span {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #fff;
    background: #333;
    transition: all 0.3s ease;
}

.project-tech span:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
}

/* ---------- COLORS PER TECH ---------- */
.project-tech span.html { background: #e34c26; }     /* Orange */
.project-tech span.css { background: #264de4; }      /* Blue */
.project-tech span.js { background: #f0db4f; color: #000; } /* Yellow/Black */
.project-tech span.react { background: #61dbfb; color: #000; } /* Cyan */
.project-tech span.node { background: #68a063; }     /* Green */
.project-tech span.mongo { background: #4db33d; }    /* Dark Green */
.project-tech span.express { background: #888; }     /* Gray */
.project-tech span.bootstrap { background: #7952b3; } /* Purple */
.project-tech span.swiper { background: #6332f6; }    /* Violet */

/* ---------- BUTTON ---------- */
.project-card .btn {
    align-self: flex-start;
    padding: 10px 25px;
    background: linear-gradient(90deg, #b74b4b, #922d2d);
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card .btn:hover {
    background: linear-gradient(90deg, #ff6b6b, #b74b4b);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    #projects { padding: 60px 8%; }
    .project-card img { height: 180px; }
}

@media (max-width: 480px) {
    #projects h2 { font-size: 2rem; }
    .project-card img { height: 150px; }
    .project-card h3 { font-size: 1.3rem; }
}




/* Certificates Section */
#certificates {
    margin-bottom: 7rem;
  padding: 80px 20px;
  background-color: #1e1e1e; /* dark bg */
  text-align: center;
}

#certificates h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

#certificates h2::after {
  content: "";
  display: block;
  width: 15%; /* instead of fixed 60px, gumamit tayo ng percent */
  max-width: 80px; /* limit para hindi sobrang haba */
  height: 4px; /* guhit kapal */
  background-color: #b74b4b;
  margin: 0.5rem auto 0; /* gitna */
  border-radius: 2px;
}

.certificates-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: auto;
}

.certificate-card {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certificate-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.certificate-card h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.certificate-card p {
  color: #aaa;
  font-size: 1.4rem;
}

/* Hover Effect */
.certificate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* MAVIVIEW MO YUNG IMAGE TAS MAY X NA LOGO NA KASAMA */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* mas mataas para siguradong nasa ibabaw */
}

.modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  pointer-events: none; /* para di ma-block ang click sa close button */
}

.modal .close {
  position: absolute;
  top: 20px; 
  right: 30px;
  font-size: 3rem;
  color: #fff;
  cursor: pointer;
  z-index: 10000; /* laging nasa ibabaw */
}


/* ---------- CONTACT SECTION ---------- */
#contact {
  margin-bottom: 7rem;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #1b1b1b, #121212);
  color: #f5f5f5;
  text-align: center;
}

#contact h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  margin-bottom: 2rem;
  position: relative;
  font-weight: 700;
  letter-spacing: 1px;
}

#contact h2::after {
  content: "";
  display: block;
  width: 15%;
  max-width: 80px;
  height: 4px;
  background: #ff6600;
  margin: 0.8rem auto 0;
  border-radius: 50px;
}

#contact p {
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.4rem;
  line-height: 1.6;
  color: #ccc;
}

/* ---------- CONTAINER ---------- */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

/* ---------- CARD STYLE ---------- */
.contact-form, 
.contact-info {
  background: #242424;
  padding: 2.5rem;
  border-radius: 16px;
  flex: 1 1 320px;
  max-width: 480px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover, 
.contact-info:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.5);
}

/* ---------- FORM ---------- */
.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.2rem;
  border: 1px solid #333;
  border-radius: 10px;
  background: #1b1b1b;
  color: #fff;
  font-size: 1rem;
  transition: border 0.3s, background 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border: 1px solid #ff6600;
  background: #222;
  outline: none;
}

/* ---------- BUTTON ---------- */
.contact-form button {
  background: #ff6600;
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background: #ff4500;
  transform: translateY(-2px);
}

/* ---------- INFO ---------- */
.contact-info h3 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
}

.contact-info p {
  margin: 0.6rem 0;
  color: #ccc;
  font-size: 1.1rem;
}

.contact-info a {
  color: #ff6600;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-info a:hover {
  color: #ff8533;
}

/* ---------- SOCIAL LINKS ---------- */
.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  margin: 0 0.8rem;
  font-size: 1.6rem;
  color: #fff;
  transition: color 0.3s, transform 0.2s;
}

.social-links a:hover {
  color: #ff6600;
  transform: scale(1.1);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
  }
}

/* Default Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 12%;
  background: #111;
  color: #fff;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

header .logo {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

header nav {
  display: flex;
  gap: 20px;
}

header nav a {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 500;
  transition: 0.3s;
}

header nav a:hover,
header nav a.active {
  color: red;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* Mobile View */
@media (max-width: 768px) {
  header nav {
    position: absolute;
    top: 70px;
    right: -100%;
    background: #111;
    flex-direction: column;
    width: 200px;
    text-align: center;
    padding: 20px;
    transition: right 0.3s ease-in-out;
  }

  header nav.active {
    right: 0;
  }

  .menu-toggle {
    display: flex;
  }
}
