@import url("reset.css");

body {
  background-color: #f5f5f5;
  background-image: url("../images/bg-body.jpg");
  margin: 2.5em auto 0 auto;
  max-width: 960px;
  font:
    62.5% Average,
    Georgia,
    serif;
}

.group:before,
.group:after {
  content: "";
  display: table;
}
.group:after {
  clear: both;
}
.group {
  zoom: 1;
}

#header,
#main,
#footer {
  font-size: 1.6em; /* inherited value (10px) x 1.6em = 16px */
}

h1,
h2,
h3,
h4 {
  font-weight: bold;
  font-family: Belgrano, Georgia, serif;
}

#main {
  background-color: white;
  background-color: rgba(255, 255, 255, 0.6);
  border: #ccc solid 1px;
  box-shadow: 0 3px 8px 0 #ccc;
  padding: 2.5em;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}
/* ── Header ── */
.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.header-brand:hover,
.header-brand:visited,
.header-brand:active {
  text-decoration: none !important;
}

.logo-initials {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #00addf;
  color: white;
  font-family: Belgrano, Georgia, serif;
  font-size: 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 1px;
}

.logo-name {
  font-family: Belgrano, Georgia, serif;
  font-size: 22px;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.logo-name strong {
  color: #00addf;
  font-weight: bold;
}

.header-tagline {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
  margin-left: 56px;
  letter-spacing: 0.3px;
}

.product {
  float: left;
  margin: 0 1em 1em 0;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 0.65em 1.4em;
  border-radius: 8px;
  font-family: Belgrano, Georgia, serif;
  font-size: 0.95em;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.5px;
  transition:
    transform 0.15s ease,
    background 0.2s ease;
}

.btn-primary {
  background: #00addf;
  color: white;
  border: 2px solid #00addf;
}

.btn-primary:hover {
  background: #0092c0;
  border-color: #0092c0;
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

blockquote p {
  font-style: italic;
}

blockquote p:before {
  content: "\201C";
  position: absolute;
  left: -20px;
  top: -10px;
  font-size: 2em;
}

blockquote p:after {
  content: "\201D";
  position: absolute;
  right: 0;
  bottom: -20px;
  font-size: 2em;
}

blockquote cite:before {
  content: "- ";
}

aside > h3 {
  font-weight: bold;
  margin: 0 0 1.6em 0;
}

p + .offer {
  color: red;
  font-style: italic;
  text-transform: uppercase;
  text-shadow:
    2px 2px 1px rgba(0, 0, 0, 0.2),
    4px 4px 2px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.strike {
  text-decoration: line-through;
}

input[type="text"],
input[type="email"] {
  border: none;
  box-shadow: -3px 3px 2px 0 #ccc inset;
  padding: 0.4em 1em;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.8em;
}

input[type="submit"][class="button"] {
  font-size: 1em;
  margin: 2em auto 1em;
  padding: 0.8em;
  display: block;
  font-size: 1em;
}

input[type="submit"][class="button"]:hover {
  background-color: #d4326d;
  cursor: pointer;
}

a:link {
  text-decoration: underline;
}

a:hover {
  text-decoration: none;
}

a:visited {
  color: black;
}

a:active {
  color: red;
}

a:focus {
  outline: black dotted 1px;
}

#content p:first-of-type:first-letter {
  font-size: 4em;
  font-weight: bold;
}

#newsletter {
  color: white;
  border-radius: 8px;
  border: rgba(0, 0, 0, 0.1) solid 5px;
  background: url("../images/bg-newsletter.png") repeat 0 #00acdf;
  padding: 6%;
  width: 98%;
  margin-left: -4px;
}

.skills-list {
  padding: 5px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#footer {
  background: #ccc url("../images/bg-footer.jpg");
  border-top: #999 dotted 4px;
  -webkit-border-image: url("../images/bdr-footer.png") 4 repeat;
  margin-top: 2.5em;
  padding: 1.4em 0;
  left: 0;
  position: absolute;
  width: 100%;
}

.showcase {
  height: 200px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 3px 12px 0 rgba(0, 0, 0, 0.12);
}

/* Math-book grid background */
.showcase-grid-bg {
  position: absolute;
  inset: 0;
  background-color: #0d1b2a;
  background-image:
    linear-gradient(rgba(0, 173, 223, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 173, 223, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(0, 173, 223, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 173, 223, 0.06) 1px, transparent 1px);
  background-size:
    40px 40px,
    40px 40px,
    8px 8px,
    8px 8px;
  background-position:
    -1px -1px,
    -1px -1px,
    -1px -1px,
    -1px -1px;
}

.showcase-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 0 2em 0 2.2em;
}

.showcase-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7em;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: Average, Georgia, serif;
}

.showcase-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00addf;
  box-shadow: 0 0 6px #00addf;
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 6px #00addf;
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 12px #00addf;
  }
}

.showcase-headline {
  font-family: Belgrano, Georgia, serif;
  font-size: 1.55em;
  font-weight: bold;
  color: white;
  line-height: 1.25;
  margin: 0;
}

.showcase-accent {
  color: #00addf;
}

.showcase-sub {
  font-size: 0.72em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  letter-spacing: 0.2px;
}

.showcase-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.showcase-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}

.showcase-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-number {
  font-family: Belgrano, Georgia, serif;
  font-size: 1.15em;
  font-weight: bold;
  color: #00addf;
  line-height: 1;
}

.stat-label {
  font-size: 0.62em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.showcase-stat-divider {
  width: 1px;
  height: 28px;
  background: rgba(0, 173, 223, 0.25);
}

#content {
  width: 65%;
  margin: 0 auto;
  float: left;
}

#header nav > ul {
  border-radius: 20px;
  border: #ccc solid 1px;
}

.small-logo a {
  background: white url("../images/logo-small.png") no-repeat center;
  display: block;
  min-height: 11px;
  width: 162px;
  padding: 5px;
  font: 0/0 a;
  text-shadow: none;
  color: transparent;
}

#header nav > ul > li {
  background: white;
  display: inline-block;
}

#header nav > ul > li:first-child {
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

#header nav > ul > li:last-child {
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

#header nav ul > li:hover {
  background: #f5f5f5;
}

#header nav ul ul > li:hover {
  background: white;
}

#header nav ul li a {
  color: black;
  display: block;
  padding: 10px 20px;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
}

#header nav ul ul {
  /*style all lists below the top-level list*/
  background: #f5f5f5;
  border: 1px solid #ccc;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  border-top: none;
  padding: 20px 0;
  position: absolute;
  min-width: 140px;
  z-index: 10;
  visibility: hidden;
}

#header nav ul ul li {
  position: relative;
}

#header nav ul ul ul {
  /*style all lists below the second-level list*/
  border: 1px solid #ccc;
  border-right: none;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding: 0;
  left: -100%;
  top: -1px;
}

#header nav li:hover > ul {
  /*show the menu of the list item being hovered over*/
  visibility: visible;
}

img {
  max-width: 100%;
}

#header {
  margin: 0 0 1.5em 0;
  padding: 1em 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  border-bottom: 1px solid #e0e0e0;
}

#header .logo {
  margin: 2.4em 0;
  float: left;
  width: 240px;
}

#header nav {
  margin-top: 2em;
  float: right;
}

.container {
  max-width: 920px;
  margin: 0 auto;
}

aside {
  margin: 0 0 2em 0;
}

#content h1,
#content h2,
#content h3,
#content h4 {
  margin: 0 0 1.6em 0;
}

#content p,
#content ul {
  margin: 0 0 1.25em 0;
  line-height: 1.4em;
}

blockquote cite {
  margin: 0.625em 0 0 0;
  float: right;
}

#newsletter h3 {
  margin: 0 0 1em 0;
}

#newsletter label {
  margin: 1.5em 0 0 0;
}

label {
  display: block;
  font-weight: 900;
  font-size: 0.8em;
}

.aside {
  margin: 0 0 2em 0;
}

.post h3 {
  margin: 0 0 1em 0;
}

.post img {
  margin: 0 0.5em 0 0;
}

.testimonials {
  padding: 1em 0 0 0;
}

.post {
  height: max-content;
  /* overflow-y: scroll; */
}

.benefits {
  clear: left;
}

.benefits ul {
  color: #38aedb;
  list-style: disc inside url("../images/check.png");
}

.sidebar {
  float: right;
  width: 25%;
  -webkit-transform: rotateY(-40deg);
  transform: rotateY(-40deg);
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.sidebar aside {
  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
}

.sidebar aside:hover {
  -webkit-transform: rotateY(40deg);
  transform: rotateY(40deg);
  -webkit-transition: -webkit-transform 0.5s;
  transition: transform 0.5s;
}

.sidebar aside:last-child:hover {
  -webkit-transform: rotateY(40deg) translateX(-50px) scaleZ(2)
    translateZ(100px);
  transform: rotateY(40deg) translateX(-50px) scaleZ(2) translateZ(100px);
  z-index: 100;
}

#footer li:nth-child(1) {
  float: left;
}

#footer li:nth-child(2) {
  float: right;
}

.banner-ad {
  bottom: 0;
  position: fixed;
  right: 0;
  z-index: 9;
  background: #00b0dc;
  color: white;
  text-align: center;
  font-family: Tahoma, Verdana, sans-serif;
  font-size: 1.1em;
  font-weight: bold;
  min-height: 50px;
  width: 200px;
  transform-origin: 50% 100%;
  transform: translate(75px, -25px) rotate(-45deg) scale(0.8);
  -webkit-transition-property: -webkit-transform;
  transition-property: transform;
  -webkit-transition-duration: 1s;
  transition-duration: 1s;
}

.banner-ad:hover {
  cursor: default;
  -webkit-transform: translate(75px, -25px) rotate(-45deg) scale(1.1);
  transform: translate(75px, -25px) rotate(-45deg) scale(1.1);
  -webkit-transition-property: -webkit-transform;
  transition-property: transform;
  -webkit-transition-duration: 1s;
  transition-duration: 1s;
}

.banner-ad span {
  clear: both;
  display: block;
  font-size: 2.2em;
}

blockquote {
  position: relative;
  text-align: justify;
}

.projects {
  width: 100%;
  margin-bottom: 30px;
}

.video-card {
  width: 95%;
  margin: 10px auto;
}

.video-card-footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.video-card video {
  width: 100%;
}

.project-tech {
  text-align: center;
}

.video-card-footer a {
  display: block;
  color: #6ac2e3;
}
/* Current Employment */
.current-employment {
  border-left: 4px solid #00addf;
  padding-left: 10px;
}

.employment-badge {
  display: inline-block;
  background: #00addf;
  color: white;
  font-size: 0.7em;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.employment-desc {
  font-size: 0.85em;
  color: #555;
  line-height: 1.5em;
  margin-top: 6px;
}

/* Work Projects */
.work-projects-section {
  margin-bottom: 30px;
  border: 1px solid #c8eaf5;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 173, 223, 0.08);
}

.work-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  background: linear-gradient(135deg, #e8f7fd 0%, #d0eefa 100%);
  padding: 14px 18px;
  border-bottom: 1px solid #c8eaf5;
}

.section-heading {
  margin: 0;
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.work-period-badge {
  background: #00addf;
  color: white;
  font-size: 0.7em;
  font-weight: bold;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.work-sub-heading {
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #00addf;
  margin: 0;
  padding: 12px 18px 8px;
  border-bottom: 1px dashed #d0eefa;
}

/* Project cards inside work section */
.work-cards-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid #c8eaf5;
}

.work-card {
  flex: 1 1 240px;
  background: #f8fcff;
  border: 1px solid #b3e0f2;
  border-left: 4px solid #00addf;
  border-radius: 8px;
  padding: 14px 16px;
}

.work-badge {
  display: inline-block;
  background: #00addf;
  color: white;
  font-size: 0.68em;
  font-weight: bold;
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.work-card h3 {
  font-size: 1em;
  margin-bottom: 3px;
  color: #1a1a1a;
}

.work-period {
  font-size: 0.75em;
  color: #00addf;
  font-weight: bold;
  margin-bottom: 8px;
}

.work-desc {
  font-size: 0.82em;
  color: #444;
  line-height: 1.5em;
  margin-bottom: 8px;
}

.work-tech {
  font-size: 0.76em;
  color: #777;
  font-style: italic;
  margin-bottom: 8px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.work-tag {
  background: #e6f7fd;
  color: #007aaa;
  border: 1px solid #b3e0f2;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.72em;
  font-weight: bold;
}

.personal-projects-heading {
  margin: 0 0 1.2em 0;
}

.contributions-extra {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 0 !important;
  border-top: none !important;
}

.contributions-extra.is-open {
  max-height: 2000px;
}

.contributions-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 18px;
  width: 100%;
  background: #f0faff;
  border: none;
  border-top: 1px dashed #c8eaf5;
  color: #00addf;
  font-size: 0.8em;
  font-weight: bold;
  font-family: Belgrano, Georgia, serif;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0.3px;
  transition: background 0.2s;
}

.contributions-toggle:hover {
  background: #d0eefa;
}

/* Contributions list */
.contributions-list {
  padding: 10px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contribution-item {
  font-size: 0.85em;
  color: #333;
  line-height: 1.55em;
  padding: 9px 0 9px 20px;
  border-bottom: 1px dashed #e8f7fd;
  position: relative;
}

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

.contribution-item::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 9px;
  color: #00addf;
  font-size: 0.85em;
}

.work-restricted {
  font-size: 0.76em;
  color: #999;
  margin: 0;
  padding: 8px 18px 12px;
  border-top: 1px solid #e8f7fd;
}

/* Collapsible Other Projects Card */
.collapsible-card {
  border: 1px solid #c8eaf5;
  border-radius: 10px;
  margin-bottom: 1.6em;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 173, 223, 0.08);
  background: #fff;
}

.collapsible-card__header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #e8f7fd 0%, #d0eefa 100%);
  border: none;
  padding: 14px 18px;
  cursor: pointer;
  font-family: Belgrano, Georgia, serif;
  font-size: 1em;
  font-weight: bold;
  color: #1a1a1a;
  text-align: left;
  transition: background 0.2s ease;
}

.collapsible-card__header:hover {
  background: linear-gradient(135deg, #d0eefa 0%, #b3e0f2 100%);
}

.collapsible-card__icon {
  font-size: 1.2em;
}

.collapsible-card__title {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9em;
}

.collapsible-card__meta {
  font-size: 0.72em;
  font-weight: normal;
  background: #00addf;
  color: white;
  padding: 2px 10px;
  border-radius: 20px;
  font-family: Average, Georgia, serif;
  white-space: nowrap;
}

.collapsible-card__chevron {
  font-size: 1.3em;
  color: #00addf;
  transition: transform 0.3s ease;
  line-height: 1;
  display: inline-block;
}

.collapsible-card__header[aria-expanded="true"] .collapsible-card__chevron {
  transform: rotate(180deg);
}

.collapsible-card__body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.35s ease,
    padding 0.2s ease;
  padding: 0 18px;
}

.collapsible-card__body.is-open {
  max-height: 800px;
  padding: 14px 18px;
}

#other-projects {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#other-projects li {
  border-bottom: 1px dashed #d0eefa;
  padding-bottom: 8px;
}

#other-projects li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#other-projects li a {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #00addf;
  font-size: 0.88em;
  text-decoration: none;
  transition: color 0.2s;
}

#other-projects li a:hover {
  color: #007aaa;
  text-decoration: underline;
}

.proj-icon {
  font-size: 0.9em;
  flex-shrink: 0;
}

/* Courses list inside collapsible card */
.courses-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.courses-list li {
  border-bottom: 1px dashed #d0eefa;
  padding-bottom: 10px;
  font-size: 0.88em;
  color: #333;
  line-height: 1.5em;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.courses-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.course-tag {
  background: #00addf;
  color: white;
  font-size: 0.72em;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.course-cert {
  font-size: 0.82em;
  color: #888;
  font-style: italic;
  white-space: nowrap;
}

.post a {
  display: block;
  margin-top: 10px;
  color: #6ac2e3;
}

.social-sites {
  position: absolute;
  bottom: 20px;
  left: 50%;
}

.social-sites a i {
  color: #6ac2e3;
}
/* Mobile (portrait and landscape) */
@media only screen and (max-device-width: 480px) {
  .showcase {
    height: 200px;
  }

  .showcase-headline {
    font-size: 1.1em;
  }

  .showcase-sub {
    font-size: 0.65em;
  }

  .showcase-stats {
    display: none;
  }

  .showcase-actions {
    gap: 6px;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 0.78em;
    padding: 0.45em 0.9em;
  }
}

/* Mobile (portrait and landscape) and viewports up to a 735px width */
@media only screen and (max-device-width: 735px) {
  #header .logo {
    display: block;
    float: none;
    margin: 0 auto;
  }

  #header {
    padding: 0 10px;
  }

  #header nav,
  .sidebar,
  #content {
    float: none;
    width: 100%;
  }

  .banner-ad {
    display: none;
  }

  #header nav > ul {
    border: none;
  }

  #header nav li {
    border-radius: 20px;
    border: #ccc solid 1px;
    margin: 0 0 5px 0;
    width: 100%;
  }

  #header nav ul ul {
    display: none;
  }

  .sidebar {
    border-top: 3px dotted #ccc;
    clear: both;
    margin: 60px 0 0 0;
    padding: 20px 0 0 0;
  }

  .sidebar,
  .sidebar aside:hover,
  .sidebar aside:nth-child(3):hover {
    -webkit-transform: none;
    -moz-transform: none;
    -o-transform: none;
    -ms-transform: none;
    transform: none;
  }

  #footer li {
    display: block;
    float: none;
    line-height: 200%;
  }
}

/* Mobile (landscape)*/
@media only screen and (max-device-width: 480px) and (orientation: landscape) {
  .showcase img {
    margin-left: -25%;
    width: 150%;
  }
}

/*viewport 960px and below*/
@media only screen and (max-width: 960px) {
  #header {
    padding: 0 40px;
  }
}

/* viewport between 480px and 735px */
@media only screen and (min-width: 480px) and (max-width: 735px) {
  #newsletter {
    margin: 0 auto;
    width: 50%;
  }
}
