/* ==============================================================
   css/style.css
   Author: Abhishek Kumar
   Purpose: Style file for Portfolio & Resume webpage
   Layout Type: Linear (Vertical) - Mobile & Desktop friendly
   ==============================================================
*/

/* --------------------------------------------------------------
   1️⃣ BASIC RESET
   -------------------------------------------------------------- */
/* Removes browser’s default margins and paddings
   and ensures all box calculations include borders & paddings. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --------------------------------------------------------------
   2️⃣ BODY (GLOBAL PAGE SETTINGS)
   -------------------------------------------------------------- */
body {
  /* Set a clean, readable font */
  font-family: "Segoe UI", Arial, sans-serif;

  /* Light background color for soft contrast */
  background-color: #b3c46e;

  /* Default text color */
  color: #1a1a1a;

  /* Makes text comfortable to read */
  line-height: 1.6;

  /* Add space around the page edges */
  padding: 20px;
}

/* --------------------------------------------------------------
   3️⃣ HEADER SECTION (NAME, TITLE, CONTACT)
   -------------------------------------------------------------- */
header {
  /* Center-align text and content */
  text-align: center;

  /* White background card */
  background: #ffffff;

  /* Padding inside the header */
  padding: 20px;

  /* Smooth rounded corners */
  border-radius: 10px;

  /* Space below header */
  margin-bottom: 20px;

  /* Light border for definition */
  border: 1px solid #ddd;
}

/* Main Name */
header h1 {
  font-size: 28px;           /* Big and bold font for your name */
  color: #0056b3;            /* Calm professional blue */
  margin-bottom: 5px;        /* Small gap below the name */
}

/* Role / Subtitle */
header p {
  font-size: 16px;           /* Slightly smaller than name */
  color: #444;               /* Neutral gray text color */
  margin: 5px 0;             /* Small vertical spacing */
}

/* Contact Links (phone, email, LinkedIn, GitHub) */
header a {
  color: #0056b3;            /* Matches the theme color */
  text-decoration: none;     /* Remove underline for a cleaner look */
  font-weight: 600;          /* Make links stand out slightly */
}

/* Hover effect for links */
header a:hover {
  text-decoration: underline; /* Underline on hover for accessibility */
}

/* Profile Image */
header img {
  margin-top: 12px;          /* Space above the image */
  width: 120px;              /* Fixed width */
  height: 120px;             /* Fixed height */
  border-radius: 50%;        /* Makes image circular */
  border: 3px solid #cce0ff; /* Soft border matching theme */
  object-fit: cover;         /* Ensures image doesn’t stretch */
}

/* Horizontal Line under header */
hr {
  margin-top: 20px;          /* Space above the line */
  border: none;              /* Remove default style */
  height: 1px;               /* Thin line */
  background-color: #ddd;    /* Light gray color */
}

/* --------------------------------------------------------------
   4️⃣ SECTIONS (SUMMARY, SKILLS, EXPERIENCE, PROJECTS, etc.)
   -------------------------------------------------------------- */
section {
  background: #ffffff;        /* White card background */
  border-radius: 10px;        /* Rounded edges */
  padding: 16px;              /* Inner spacing */
  margin-bottom: 18px;        /* Space between sections */
  border: 1px solid #eee;     /* Very light border */
}

/* Section Titles */
section h2 {
  color: #0056b3;             /* Blue theme heading */
  font-size: 20px;            /* Large heading size */
  margin-bottom: 10px;        /* Space below title */
  border-bottom: 1px solid #e5e5e5; /* Thin underline for separation */
  padding-bottom: 5px;        /* Slight padding below the text */
}

/* Paragraphs in sections */
section p {
  margin-bottom: 10px;        /* Space between paragraphs */
}

/* Unordered Lists (Skills, Achievements, etc.) */
section ul {
  list-style: disc;           /* Bullet points */
  margin-left: 20px;          /* Indent from the left */
  margin-top: 8px;            /* Space above list */
}

/* List Items */
section li {
  margin-bottom: 6px;         /* Space between list items */
}

/* --------------------------------------------------------------
   5️⃣ ARTICLES (EACH JOB, PROJECT, INTERNSHIP, etc.)
   -------------------------------------------------------------- */
article {
  margin-bottom: 14px;        /* Space between articles */
  padding-bottom: 10px;       /* Inner bottom spacing */
  border-bottom: 1px dashed #ccc; /* Light dashed divider line */
}

/* Remove border for last article in section */
article:last-child {
  border-bottom: none;
}

/* Article Titles (Job or Project Names) */
article h3 {
  font-size: 17px;            /* Slightly smaller heading */
  color: #003366;             /* Dark navy blue */
  margin-bottom: 4px;         /* Tight spacing below */
}

/* Company Logos (Small) */
article img.logo {
  height: 28px;               /* Small size */
  vertical-align: middle;     /* Aligns with text baseline */
  margin-right: 6px;          /* Space between logo and text */
}

/* Inline small images like certificates */
.inline-img {
  height: 36px;
  border-radius: 6px;         /* Smooth edges */
  margin-left: 8px;
  vertical-align: middle;
}

/* --------------------------------------------------------------
   6️⃣ FOOTER (BOTTOM INFO)
   -------------------------------------------------------------- */
footer {
  text-align: center;         /* Centered footer text */
  color: #555;                /* Medium gray */
  font-size: 14px;            /* Slightly smaller text */
  margin-top: 20px;           /* Space above footer */
  padding: 10px;              /* Padding inside footer */
}

/* --------------------------------------------------------------
   7️⃣ LINKS (INSIDE BODY TEXT)
   -------------------------------------------------------------- */
a {
  color: #0056b3;             /* Default link color */
}

/* Underline on hover for visibility */
a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------
   8️⃣ RESPONSIVE DESIGN (FOR MOBILE PHONES)
   -------------------------------------------------------------- */
@media (max-width: 600px) {
  body {
    padding: 10px;            /* Less padding on small screens */
  }

  header h1 {
    font-size: 24px;          /* Slightly smaller name */
  }

  section h2 {
    font-size: 18px;          /* Slightly smaller headings */
  }

  header img {
    width: 100px;             /* Smaller profile image */
    height: 100px;
  }

  /* Reduce padding for sections */
  section {
    padding: 12px;
  }
}
