/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* GLOBAL */

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  color: #1f2937;
  background-color: #f8f9fb;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 2rem;
}

/* TYPOGRAPHY */

h1,
h2,
h3 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.3rem;
}

p,
li {
  margin-bottom: 1rem;
}

/* HEADER */

header {
  width: 100%;
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e7eb;
  background: #f8f9fb;
}

/* CONTAINERS */

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-container {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-container p {
  max-width: 650px;
}

/* LOGO */

.logo h1 {
  font-size: 1.8rem;
}

/* NAVIGATION */

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  margin-left: 1.5rem;
  color: #1f2937;
  font-weight: 500;
}

nav a:hover {
  color: #0696D7;
  text-decoration: none;
}

/* SECTIONS */

section {
  margin-bottom: 5rem;
}

/* LOGO CAROUSEL */
/* TOOLS SECTION */

.tools {
  margin: 5rem 0;
}

/* SLIDER CONTAINER */

.logo-slider {
  overflow-x: hidden;
  overflow-y: visible;
  position: relative;
  margin-top: 2rem;
  padding: 1.5rem 0;
  white-space: nowrap;
}

.logo-track {
  display: flex;
  width: max-content;
  animation: scroll 22s linear infinite;
}

.logo-set {
  display: flex;
  align-items: center;
}

/* LOGOS */

.logo-set img {
  /*height: 500px;*/
  /*opacity: 0.7;*/
  /*filter: grayscale(100%);*/
  padding: 0 0.5rem;
  margin: 0 1rem;
}

.logo-set img:hover {
  opacity: 1;
}

/* ANIMATION */

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* ON HOVER */
.logo-track:hover {
  animation-play-state: paused;
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  /*margin: 0 3rem;*/
  position: relative;

  transition: transform 0.25s ease;
}

.logo-item img {
  height: 40px;
  opacity: 0.7;
  filter: grayscale(100%);
  transition: all 0.25s ease;
}

.logo-item:hover img {
  transform: scale(1.6);
  opacity: 1;
  filter: grayscale(0%);
}

.logo-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #1f2937;

  opacity: 0;
  transform: translateY(6px);
  transition: all 0.25s ease;

  white-space: nowrap;
}

.logo-item:hover .logo-label {
  opacity: 1;
  transform: translateY(0);
}

/* SCROLL GRADIENT */
.logo-slider::before,
.logo-slider::after {
  content: "";

  position: absolute;

  top: 0;

  width: 100px;
  height: 100%;

  z-index: 2;
}

.logo-slider::before {
  left: 0;

  background: linear-gradient(
    to right,
    #f8f9fb,
    transparent
  );
}

.logo-slider::after {
  right: 0;

  background: linear-gradient(
    to left,
    #f8f9fb,
    transparent
  );
}

/* SKILLS SECTION*/
.skills {
  margin: 5rem 0;
}

.skills-container {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 4rem;

  align-items: stretch;
}

.skills-left {
  display: flex;
  align-items: center; /* vertically centers text inside full height */
}

.skills-left-content {
  display: flex;
  flex-direction: column;
  justify-content: center; /* vertically centers text block */
  height: 100%;
}

.skills-left h2 {
  font-size: 2.8rem;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}

.skills-left p {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 90%;
}

.skills-right {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 615px;

  align-content: stretch; /* IMPORTANT */
}

.skill-card {
  width: 100%;

  border: 1px solid #dce1e7;
  border-radius: 12px;
  padding: 1rem;

  background: white;

  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  min-height: 150px; /* key for uniformity */
}

.skill-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.skill-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;

  overflow-wrap: anywhere;
}

.skill-card p {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
}

.skill-card img {
  height: 3em;   /* matches H3 font size */
  width: auto;
  flex-shrink: 0;
  margin-top: 0.15em;
}

/* PROJECT CARDS */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.project-card {
  text-decoration: none;
  color: inherit;

  height: 250px;
  perspective: 1000px;
}

.project-card-inner {
  position: relative;

  width: 100%;
  height: 100%;

  transition: transform 0.7s;
  transform-style: preserve-3d;
}

.project-card:hover .project-card-inner {
  transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid #dce1e7;
  border-radius: 12px;
  padding: 2rem;
  backface-visibility: hidden;
  background: white;
}

.project-card-front {
  display: flex;
  flex-direction: column;
  justify-content: center;

  align-items: center;

  gap: 0.8rem;

  text-align: center;
  padding: 2rem;
}

.project-card-back {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  transform: rotateY(180deg);
  font-size: 0.95rem;
  line-height: 1.6;

  flex-direction: column;
  gap: 1rem;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 90%;
}

.project-card-header img {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.project-card-header h3 {
  margin: 0;
  line-height: 1.2;
  text-align: left;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.divider {
  width: 1px;
  height: 24px;
  background: #d1d5db;
}

.project-card-front h3 {
  margin: 0;
  line-height: 1;
}

.project-card-front p {
  margin: 0;
  display: block;
  width: 100%;
  font-size: 0.9rem;
  color: #6b7280;
  max-width: 90%;
}

/* BUTTON */
.project-btn {
  display: inline-block;

  padding: 0.4rem 0.9rem;
  border-radius: 999px; /* oblong pill */

  background: #0b5cab; /* AEC-style blue */
  color: white;

  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.2px;

  transition: all 0.25s ease;

  margin-top: 0.5rem;
}

/* HOVER STATE */
.project-btn:hover {
  background: #094c8f;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(6, 150, 215, 0.18);
}

/* ACTIVE/CLICK FEEDBACK */
.project-btn:active {
  transform: translateY(0px);
  box-shadow: none;
}

.project-card:hover {
  transform: translateY(-4px);
}

/* MOBILE */

@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
}

/* IMAGES */

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

/* FOOTER */

footer {
  margin-top: 4rem;
  padding-top: 2rem;

  border-top: 1px solid #ddd;

  font-size: 0.9rem;
  color: #666;

  text-align: center;
}
