/** VARIABLES **/

/** HERO **/

h1 {
  background: linear-gradient(120deg, #0099ff 0%, #ffffff 70%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-layout {
  padding: 50px 20px 30px;
}

.hero-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 15px;
  letter-spacing: 0.3px;
}

.hero-sub {
  color: #888888;
  max-width: 620px;
  margin: 0 auto 28px;
  font-style: normal;
}

.hero-tagline {
  margin-top: 24px;
  color: #555555;
  font-style: italic;
}

.btn-hero {
  display: inline-block;
  padding: 11px 30px;
  background-color: #0099ff;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.3px;
}

.btn-hero:hover {
  background-color: #007acc;
  box-shadow: 0 0 20px rgba(0, 153, 255, 0.35);
}

/** STATS **/

#stats {
  display: flex;
  justify-content: space-around;
  padding: 24px 0;
  margin-bottom: 4px;
  background-color: #141414;
  text-align: center;
  border-radius: var(--border-radius-containers);
}

.stat-count {
  display: block;
  font-size: 2em;
  font-weight: bold;
  color: #0099ff;
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 0.75em;
  color: #888888;
  margin-top: 4px;
}

/** SERVICE LIST **/

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.service-item {
  padding: 14px 20px;
  border-bottom: 1px solid var(--colour-border-bottom);
  transition: background-color 0.2s ease;
}

.service-item:last-child {
  border-bottom: none;
}

.service-item:hover {
  background-color: #252525;
}

.service-title {
  margin: 0 0 4px 0;
  padding: 0 !important;
}

.service-title i {
  color: var(--colour-border-left);
  width: 18px;
  margin-right: 8px;
  text-align: center;
}

.service-desc {
  color: #888888;
  font-size: 0.9em;
  margin: 0 0 0 26px; /* aligns under title text, past icon + margin */
  padding: 0 !important;
}

/** TABLE ICONS **/

.tableProjects td:nth-of-type(1) {
  white-space: nowrap;
}

.tableServices td i,
.tableProjects td i {
  color: var(--colour-border-left);
  margin-right: 8px;
  width: 18px;
  text-align: center;
}

/** TABLE HOVER **/

.tableProjects tr:not(:nth-of-type(1)):hover,
.tableServices tr:not(:nth-of-type(1)):hover {
  background-color: #252525 !important;
}

/** BACK TO TOP **/

#backToTop {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #0099ff;
  color: #ffffff;
  border: none !important;
  cursor: pointer;
  display: none;
  z-index: 200;
  font-size: 15px;
  box-shadow: 0 2px 12px rgba(0, 153, 255, 0.5);
  transition: background-color 0.2s ease;
  padding: 0;
}

#backToTop:hover {
  background-color: #007acc;
  color: #ffffff;
}

/** FORM VALIDATION **/

input.field-invalid,
textarea.field-invalid {
  border-color: #cc3333 !important;
}

input.field-valid,
textarea.field-valid {
  border-color: #00aa55 !important;
}

/** ICON LIST ITEMS **/

.articleItems li i,
p.articleItems i {
  color: #0099ff;
  width: 18px;
  margin-right: 8px;
  text-align: center;
}

.articleBlurb {
  font-size: 0.8em;
  color: #888888;
  text-align: center;
  padding: 4px 10px 10px;
  font-style: italic;
}

:root {
  --colour-background: #0f0f0f;
  --colour-background-nav: #1a1a1a;
  --colour-background-containers: #1c1c1c;
  --colour-background-form-input: #252525;
  --colour-background-button: #1e1e1e;

  --colour-text: #d0d0d0;

  --colour-border-form-input: #3a3a3a;
  --colour-border-left: #0099ff;
  --colour-border-bottom: #2a2a2a;

  --colour-hover-on: #ffffff;

  --colour-focus: #0099ff;

  --colour-table-header: #222222;
  --colour-table-row-odd: #1a1a1a;
  --colour-table-row-even: #1e1e1e;

  --border-radius-containers: 5px 5px;
  --border-radius-table-header-col-start: 5px 2px 2px 2px;
  --border-radius-table-header-col-intermediate: 2px 2px 2px 2px;
  --border-radius-table-header-col-end: 2px 5px 2px 2px;
  --border-radius-table-header-single: 5px 5px 2px 2px;
  --border-radius-table-rows: 2px 2px 2px 2px;
  --border-radius-button: 4px 4px;
  --border-radius-form-items: 4px 4px;
}

/** GENERAL **/

body {
  width: 90%;
  margin: auto;
  background-color: var(--colour-background);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--colour-text);
}

::-webkit-scrollbar {
  width: 0; /* hide scroll bar on desktop; compatible with all browsers */
}

#header {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  position: sticky;
  top: 0px;
  opacity: 0;
  width: 99%;
  padding: 8px 0;
  background-color: var(--colour-background);
}

nav {
  border-radius: var(--border-radius-containers);
  border-left: 4px solid var(--colour-border-left);
  padding: 10px 0 10px 10px;
  height: 18px;
  position: sticky;
  z-index: 10;
  justify-content: space-evenly;
  background-color: var(--colour-background-nav);
}

nav a:link {
  text-decoration: none;
}
nav a:visited {
  text-decoration: none;
}
nav a:active {
  text-decoration: none;
}
nav a {
  padding: 0.5em 0.5em 0.5em 0.5em;
  color: var(--colour-text);
  transition: color 0.2s ease;
}

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


#feature {
  margin: 1%;
  text-align: center;
  background-color: transparent;
}

#feature p {
  padding: 20px 0 20px 0;
}

.group1,
.group2,
.group3 {
  background-color: var(--colour-background-containers);
}

#feature,
.article {
  margin-bottom: 2px;
}

.articleTitle {
  font-weight: bold;
  text-align: center;
  padding: 10px 0 10px 0 !important;
  border-bottom: 2px solid var(--colour-border-bottom);
}

.article {
  height: auto;
  border-radius: var(--border-radius-containers);
  border-left: 4px solid var(--colour-border-left);
  box-shadow: 0 2px 12px rgba(0, 153, 255, 0.08);
}

#webDetails {
  position: relative;
  right: 0;
  text-align: right;
  font-size: 7px;
  clear: both;
}

/** HOME **/
.articleItems {
  list-style-type: none;
  list-style-position: inside;
  text-align: left;
  padding: 0 0 0 20px;
  font-size: 1em;
  word-break: normal;
}

.articleItems li {
  margin: 5%;
}

.subs {
  padding-left: 46px; /* 20px (articleItems padding) + 18px (icon) + 8px (icon margin) */
  list-style-type: none;
  word-break: normal;
}

.subs li {
  margin: 3%;
}
/** SERVICES/PROJECTS **/

.table-card {
  background-color: var(--colour-background-containers);
  border-radius: var(--border-radius-containers);
  border-left: 4px solid var(--colour-border-left);
  box-shadow: 0 2px 12px rgba(0, 153, 255, 0.08);
  overflow: hidden;
  margin-bottom: 4px;
}

.table-card .tableProjects,
.table-card .tableServices {
  width: 100%;
  margin: 0;
}

.table-card .tableProjects th:nth-of-type(1),
.table-card .tableServices th:nth-of-type(1) {
  border-left: none;
}

.tableProjects {
  margin: auto;
  width: 80%;
  border-collapse: collapse;
}

.tableServices {
  margin: auto;
  width: 80%;
  border-collapse: collapse;
}

.tableProjects th,
.tableServices th {
  /* header */
  padding: 15px 15px 15px 15px;
  text-align: center;
  border-bottom: 2px solid var(--colour-border-bottom);
}

.tableProjects td,
.tableServices td {
  /* data */
  padding: 10px 10px 10px 10px;
  border-bottom: 1px solid var(--colour-border-bottom);
}

.tableProjects tr:last-child td,
.tableServices tr:last-child td {
  border-bottom: none;
}

.tableProjects tr,
.tableServices tr {
  /* row */
  background-color: var(--colour-table-row-even);
  text-align: left;
}

.tableProjects tr:nth-of-type(1),
.tableServices tr:nth-of-type(1) {
  background-color: var(--colour-background-containers);
}

.tableProjects tr:nth-of-type(even),
.tableServices tr:nth-of-type(even) {
  background-color: var(--colour-table-row-odd);
}

/* header column 1 */
.tableProjects th:nth-of-type(1) {
  border-radius: var(--border-radius-table-header-col-start);
  border-left: 4px solid var(--colour-border-left);
}

/* header column 2 */
.tableProjects th:nth-of-type(2) {
  border-radius: var(--border-radius-table-header-col-intermediate);
}

/* header column 3 */
.tableProjects th:nth-of-type(3) {
  border-radius: var(--border-radius-table-header-col-end);
}

/* header column 1 */
.tableServices th:nth-of-type(1) {
  border-radius: var(--border-radius-table-header-single);
  border-left: 4px solid var(--colour-border-left);
}

.endNote {
  padding: 20px 0 20px 0;
}

/** CONTACT **/

.container {
  border-radius: var(--border-radius-containers);
  margin: 2%;
  background-color: var(--colour-background-containers);
  padding: 1px 10px 10px 10px;
  border-left: 4px solid var(--colour-border-left);
  box-shadow: 0 2px 12px rgba(0, 153, 255, 0.08);
}

.container p:nth-of-type(1) {
  text-align: center;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--colour-border-bottom);
}

label {
  float: left;
}

select {
  margin: 1%;
  border-radius: 4px;
  border: 1px solid var(--colour-border-form-input);
  background-color: var(--colour-background-form-input);
  color: var(--colour-text);
  text-align: left;
}

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border: 3px solid var(--colour-focus);
}

input {
  border-radius: var(--border-radius-form-items);
  width: 95%;
  background-color: var(--colour-background-form-input);
  border: 1px solid var(--colour-border-form-input);
  color: var(--colour-text);
  text-align: left;
}

textarea {
  border-radius: var(--border-radius-form-items);
  height: 120px;
  color: var(--colour-text);
  background-color: var(--colour-background-form-input);
}

button {
  width: 100px;
  border-radius: var(--border-radius-button);
  padding: 1% 1% 1% 1%;
  background-color: var(--colour-background-button);
  color: var(--colour-text);
  text-align: center;
  border: 1px solid #3a3a3a;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

button:hover {
  border: 1px solid var(--colour-hover-on) !important;
  color: var(--colour-hover-on);
}
