/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Apply a clean font and base colors */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    height: 100%;
}

/* Header + Navigation */
header {
    background: #222;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    color: #00adb5;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 18rem 1rem;
    background: linear-gradient(120deg, #00adb5, #393e46);
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    margin-bottom: 1.5rem;
}

.hero a {
    display: inline-block;
    background: white;
    color: #393e46;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
}

.hero a:hover {
    background: #00adb5;
    color: white;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    background: #222;
    color: #fff;
}


/* ================================ ABOUT PAGE ====================================== */

/* ABOUT PAGE */
.about {
    max-height: 100%;
    padding: 17rem 1rem;
    background: linear-gradient(120deg, #00adb5, #7aaafd);
}

.about h1 {
    text-align: center;
    margin-bottom: 1rem;
}

.about p {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.skills {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 0;
}

.skills li {
    background: #eee;
    padding: 0.75rem;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

/* ======================================= CONTACTS ================================= */

/* CONTACT PAGE */
.contact {
    max-width: 600px;
    margin: 3rem auto;
    padding: 0 1rem;
    text-align: center;
}

.contact h1 {
    margin-bottom: 1rem;
}

.contact p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form label {
    text-align: left;
    font-weight: bold;
}

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

.contact-form button {
    background: #00adb5;
    color: white;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

.contact-form button:hover {
    background: #007b80;
}

/* Apply only to contacts page */
.contacts-page {
    background: linear-gradient(to right, #00adb5, #393e46);
    color: white;
    

    /* min-height: 80vh; make it fill screen height */
    display: flex;
    flex-direction: column;
}

/* Ensure content has some spacing */
.contacts-page main {
    flex: 1;
    padding: 2rem;
}
/* SOCIAL MEDIA LINKS */
.socials {
    margin-top: 2rem;
}

.socials h2 {
    margin-bottom: 1rem;
}

.socials a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* space between icon and text */
    margin: 0.5rem 1rem;
    text-decoration: none;
    color: #0f0046;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s, transform 0.2s;
}

.socials a:hover {
    color: #03daf7;
    transform: scale(1.1); /* slight zoom effect */
}

.socials i {
    font-size: 1.3rem;
}

/* ===================================== PROJECTS PAGE ============================ */

/* Projects page background */
.projects-page {
    background-color: #49494946;
    display: flex;
    flex-direction: column;
}

.projects {
    padding: 2rem;
    text-align: center;
    min-height: 83.5vh;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.project-card h2 {
    margin-bottom: 0.5rem;
    color: #00adb5;
}

.project-card a {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: #00adb5;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.project-card a:hover {
    background: #007b80;
}


/* Navbar layout */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #333;
  color: white;
}

.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* ====== MOBILE STYLES ====== */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* hidden by default */
    flex-direction: column;
    background: #222;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }

  .nav-links.show {
    display: flex; /* show when toggled */
  }

  .menu-toggle {
    display: block; /* only show on mobile */
  }
}

.logo h1 {
  margin: 0;
  color: white;
}


