/* ************************************ */
/* Layout container to push footer down */
/* ************************************ */
html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* ********** */
/* Body Style */
/* ********** */
body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    color: #222;
}

/* ************ */
/* Header Style */
/* ************ */
header {
    background-color: #111;
    color: #fff;
    padding: 0.8rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.logo-website {
    width: 92px;
    height: 92px;
    border-radius: 32px;
}

/* Navigation */
.header-nav {
    margin-top: 0.5rem;
}

.header-nav a {
    color: #fff;
    font-size: 18px;
    text-decoration: none;
    margin: 0 0.8rem;
    font-weight: bold;
}

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

/* ************ */
/* Main Style */
/* ************ */
/* Main content grows to fill available space */
main {
    flex: 1;
    padding: 2rem;
    text-align: center;
    background-color: #ccc;
}

/* ************ */
/* Footer Style */
/* ************ */
footer {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: auto; /* 👈 ensures footer is pushed to bottom */
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

/* Social Links Navigation */
.social-links {
    margin-top: 0.5rem;
}

.social-links a {
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    margin: 0 0.8rem;
    font-weight: bold;
}

.social-links a:hover {
    text-decoration: underline;
}

/* ************ */
/* Home Section */
/* ************ */
.home {
    background-color: #f0f4f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1500px;
    gap: 2rem;
    margin: 2rem auto;
    padding: 1rem;
}

.home-image img {
    width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.home-text {
    font-size: 20px;
    max-width: 1000px;
    text-align: justify;
}

.home-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.home-text p {
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .home {
        flex-direction: column;
        text-align: justify;
    }

    .home-text {
        text-align: justify;
    }

    .home-image img {
        width: 200px;
    }
}

/* *************** */
/* Project Section */
/* *************** */
.project {
    background-color: #f0f4f9;
    display: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1500px;
    gap: 2rem;
    margin: 2rem auto;
    padding: 1rem;
}

.project-logos {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 30px;
    gap: 30px;
}

.project-logos img {
    width: auto;
    max-height: 128px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: contain;
    background-color: white;
}

.project-logos a {
    color: #000;
    display: inline-block;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-logos a:hover {
    color: #f00;
    transform: scale(1.1);
    text-decoration: underline;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.project-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 350;
    max-height: 350px;
    border: none;
    border-radius: 15px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    padding: 10px;
}

.project-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.project-btn img {
    display: block;
    max-width: 200;
    max-height: 128px;
    object-fit: contain;
    margin-bottom: 8px;
}

/* Responsive: make cards narrower on small screens */
@media (max-width: 520px) {
  .project-btn {
    width: 90%;
  }

  .project-meta {
    justify-content: center;
  }
}

/* *************** */
/* Contact Section */
/* *************** */
.contact {
    background-color: #f0f4f9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1500px;
    gap: 2rem;
    margin: 2rem auto;
    padding: 1rem;
}

.contact-text {
    font-size: 20px;
    max-width: 1000px;
    text-align: justify;
}

.contact-text h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-text p {
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .contact {
        flex-direction: column;
        text-align: justify;
    }

    .contact-text {
        text-align: justify;
    }
}

/* ************** */
/* Skills Section */
/* ************** */
#skills {
  background-color: #f0f4f9;
  padding: 60px 20px;
  text-align: center;
}

#skills h1 {
  font-size: 2em;
  color: #333;
  margin-bottom: 40px;
}

/* container for skill columns */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  justify-items: center;
}

/* each skill column */
.skills-column {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 20px 30px;
  width: 280px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.skills-column h2 {
  text-align: center;
  color: #0073e6;
  margin-bottom: 16px;
  font-size: 1.2em;
}

.skills-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-column li {
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 0.95em;
  color: #333;
}

.skills-column li:last-child {
  border-bottom: none;
}

/* responsive for smaller screens */
@media (max-width: 768px) {
  .skills-container {
    flex-direction: column;
    align-items: center;
  }

  .skills-column {
    width: 90%;
  }
}