/*
 * Custom stylesheet for H. Can Umutlu’s minimalist CV website.
 *
 * The design follows a clean, understated aesthetic.  A limited
 * palette and restrained layout keep the focus on the content.  This
 * stylesheet uses CSS variables for easy theme adjustments and
 * includes simple responsive rules to ensure readability across
 * devices.
 */

:root {
  /* Primary brand colours used throughout the site */
  --primary: #0a5c75;     /* muted teal for accents */
  --secondary: #ad4d34;   /* soft terracotta for subtle highlights */
  --light-bg: #fafafa;    /* off‑white background */
  --dark-bg: #1c2530;     /* dark background for the footer */
  --text-color: #333333;  /* dark grey for body text */
  --text-light: #ffffff;  /* white text used on dark backgrounds */
}

/* Base styles */
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-bg);
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--primary);
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;

  /* Ensure the main content sits above any stray elements or backgrounds.
     Setting a relative position and z-index helps suppress remnants of
     previous overlays when viewing the page locally. */
  position: relative;
  z-index: 1;
  background-color: var(--light-bg);
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

header h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}

header p {
  margin: 0.5rem 0 1rem;
  color: #555;
  font-size: 1.1rem;
}

nav {
  margin-top: 0.5rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

nav a {
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
}

nav a:hover {
  color: var(--primary);
}

/* We intentionally avoid sticky or collapsible navigation for a
   minimal feel. Responsive behaviour is achieved naturally via
   flex-wrap. */

/* Main content */
main {
  margin-top: 1rem;
}

section {
  margin-bottom: 2.5rem;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.3rem;
}

/* Experience and education items */
/* Content items */
.item {
  margin-bottom: 1rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--primary);
}

.item h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary);
}

.item p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Certifications */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.cert-card {
  border-left: 4px solid var(--primary);
  padding-left: 0.75rem;
}

.cert-card h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--secondary);
}

.cert-card p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

/* Skills list */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skills-list span {
  background: var(--primary);
  color: #fff;
  padding: 0.3rem 0.7rem;
  border-radius: 16px;
  font-size: 0.85rem;
}

/* Language list */
.languages-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.languages-list .language {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
}

.languages-list .language i {
  margin-right: 0.4rem;
  color: var(--primary);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 600px;
  margin: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 0.7rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
  padding: 0.7rem 1.4rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: var(--secondary);
}

/* Footer */
footer {
  background: var(--dark-bg);
  color: var(--text-light);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
}

footer .social-icons {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

footer .social-icons a {
  color: var(--text-light);
  font-size: 1.4rem;
  transition: color 0.2s ease;
}

footer .social-icons a:hover {
  color: var(--secondary);
}