/* =========================================================
   ROOT VARIABLES & GLOBAL STYLES
   ========================================================= */

:root {
  --bg-main: #f5f7fa;
  --bg-card: #ffffff;
  --text-main: #1f2933;
  --text-muted: #4b5563;
  --accent: #2563eb;
  --border-light: #e5e7eb;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}


/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */

header {
  background-color: #027770;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 35px;          /* 👈 lock height */
  z-index: 1000;
}

/* header {
  position: relative;
} */

body {
  padding-top: 35px;
}

/* NAVBAR CONTAINER */
.navbar {
  position: relative;
  background-color: #0e4357;
  padding: 10px;
  height: 100%;
}
/* .navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  background-color: #0e4357;
  padding: 10px;
  height: 35px;
} */

/* LOGO (LEFT-ALIGNED) */
.logo {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  z-index: 2;
}

.logo img {
  height: 40px;
}

/* MAIN NAV (CENTERED TO VIEWPORT) */
.nav {
  list-style: none;
  display: flex;
  gap: 30px;

  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  margin: 0;
  padding: 0;
}

/* NAV ITEMS */
.nav > li {
  position: relative;
}

/* NAV LINKS */
.nav > li > a {
  color: #fff;
  text-decoration: none;
  padding: 10px;
  display: block;
}


/* =========================================================
   DROPDOWN MENUS
   ========================================================= */

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 180px;
  background-color: #000;
  border: 1px solid #444;
  border-radius: 4px;

  margin: 0;
  padding: 0;

  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  width: 100%;
  padding: 10px 14px;
  color: #fff;
  text-decoration: none;
  box-sizing: border-box;
}

.dropdown-menu li a:hover {
  background-color: #222;
}

/* SHOW DROPDOWN ON HOVER */
.dropdown:hover .dropdown-menu {
  display: block;
}


/* =========================================================
   MAIN CONTENT LAYOUT
   ========================================================= */

main {
  padding: 20px;
}

main section {
  margin-top: 60px;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}

section p {
  max-width: 800px;
  font-size: 1.05rem;
  color: var(--text-muted);
}


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

.project {
  margin-bottom: 20px;
}

.project img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* ===== PROJECT CARDS ===== */
.projects-cards {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.project-card {
  max-width: 350px;
  display: flex;                 /* use flexbox */
  flex-direction: column;        /* stack content vertically */
  justify-content: space-between; /* push status to the bottom */
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-card h3 {
  margin: 0 0 10px 0;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

/* ===== PROJECT STATUS ===== */
.project-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.project-status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Status colors */
.project-status.completed span {
  background-color: #22c55e; /* green */
}

.project-status.in-progress span {
  background-color: #3b82f6; /* blue */
}

.project-status.archived span {
  background-color: #eab308; /* yellow */
}

.project-status.prototype span {
  background-color: #a855f7; /* purple */
}


/* ===== PROJECT FILTERS ===== */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 30px;
}

.project-filters button {
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-card);
  cursor: pointer;
  font-size: 0.9rem;
}

.project-filters button.active,
.project-filters button:hover {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}




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

/* HERO SECTION */
.about-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 60px 0;
  border-bottom: 1px solid var(--border-light);
}

.about-text {
  max-width: 60%;
}

.about-text h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.about-text h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-subtext {
  max-width: 600px;
  color: #374151;
}

/* ===== Short Skills Grid (About Page) ===== */
.skills-grid--short {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;  /* slightly more spacing between cards */
  margin-top: 20px;
}

.skills-grid--short div {
  padding: 20px 15px;           /* increased top/bottom padding for height */
  background-color: var(--bg-card);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
  font-size: 1rem;
  line-height: 1.6;             /* taller lines for readability */
  min-height: 120px;            /* ensures a consistent minimum height */
  display: flex;
  flex-direction: column;
  justify-content: center;       /* vertically center the text inside the card */
}


/* =========================================================
   SKILLS
   ========================================================= */

/* ===== SKILLS GRID ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

/* ===== SKILLS CARDS ===== */
.skills-card {
  display: block;               /* Makes the whole card clickable */
  background-color: var(--bg-card);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 5px solid var(--accent);

  text-decoration: none;        /* REMOVE underline */
  color: var(--text-main);      /* Preserve original text color */
}

.skills-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.skills-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

.skills-card ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

.skills-card li {
  margin-bottom: 6px;
}


/* =========================================================
   CONTACT PAGE
   ========================================================= */
/* ================= CONTACT PAGE STYLING ================= */
.contact-intro {
  max-width: 700px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.contact-intro h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.contact-intro p {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact links grid */
.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto 80px auto;
}

/* Contact card styling */
.contact-card {
  display: block;
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 5px solid var(--accent);
}

.contact-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.contact-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Hover effect */
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Optional color accents per contact type */
.contact-card.email { border-color: #EA4335; }    /* Gmail Red */
.contact-card.github { border-color: #333; }     /* GitHub Black */
.contact-card.linkedin { border-color: #0077B5; }/* LinkedIn Blue */
.contact-card.youtube { border-color: #FF0000; } /* YouTube Red */
.contact-card.resume { border-color: var(--accent); } /* Default accent */


/* =========================================================
   BUTTONS / CALL TO ACTIONS
   ========================================================= */

.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;

  background-color: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;

  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.cta-button:hover {
  background-color: #1e4ed8;
}

/* SECONDARY CTA */
.cta-button.secondary {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.cta-button.secondary:hover {
  background-color: var(--accent);
  color: #fff;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 15px;
}


/* =========================================================
   RESPONSIVE DESIGN
   ========================================================= */

@media (max-width: 900px) {
  .about-hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-image img {
    width: 220px;
  }
}