* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: radial-gradient(circle at top, #1a1a1a, #0b0b0b);
  color: #ffffff;
}

/* ================= LAYOUT ================= */

.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
}

/* ================= SIDEBAR ================= */

.sidebar {
  position: sticky;
  top: 40px;
}

.profile-card {
  background: #161616;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
  text-align: center;
}

.profile-image {
  width: 100%;
  border-radius: 16px;
  border: 2px solid #3a6ea5;
  margin-bottom: 16px;
}

.profile-image-ccc{
  width: 100%;
  border-radius: 16px;
  border: 2px solid #94ac5a;
  margin-bottom: 16px;
}

.profile-image-fl{
  width: 100%;
  border-radius: 16px;
  border: 2px solid #BA041C;
  margin-bottom: 16px;
}

.role {
  color: #9aa4ad;
  font-size: 14px;
}

.divider {
  height: 1px;
  background: #2a2a2a;
  margin: 20px 0;
}

.contact {
  text-align: left;
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-item span {
  background: #222;
  padding: 8px;
  border-radius: 8px;
}

.contact-item small {
  font-size: 12px;
  color: #9aa4ad;
}

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-ccc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-fl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.social:hover {
  background: #3a6ea5;
}

.social-ccc:hover {
  background: #94ac5a;
}

.social-fl:hover {
  background: #BA041C;
}

.linkedin-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* ================= MAIN ================= */

.content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.card {
  background: #161616;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(0,0,0,.6);
}

.card h1 {
  font-size: 28px;
}

.underline {
  width: 60px;
  height: 2px;
  background: #3a6ea5;
  margin: 12px 0 20px;
}

.underline-ccc {
  width: 60px;
  height: 2px;
  background: #94ac5a;
  margin: 12px 0 20px;
}

.underline-fl {
  width: 60px;
  height: 2px;
  background: #BA041C;
  margin: 12px 0 20px;
}

.about-text {
  color: #cfd6dd;
  max-width: 700px;
  line-height: 1.6;
}

.about-text-ccc {
  color: #cfd6dd;
  text-align: center;
  max-width: 700px;
  line-height: 1.6;
}

.info-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  font-size: 14px;
}

.btn {
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  background: #3a6ea5;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-ccc {
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  background: #94ac5a;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-fl {
  margin-top: 28px;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  background: #BA041C;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

/* ================= WORK ================= */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.work-card {
  display: block;
  text-decoration: none;
  color: white;
  background: #1d1d1d;
  border-radius: 16px;
  padding: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0,0,0,.5);
}

.work-card img {
  width: 100%;
  border-radius: 12px;
  background: #fff;
}

.tag {
  display: block;
  margin-top: 12px;
  color: #7aa2d6;
  font-size: 12px;
}

.work-card h3 {
  margin-top: 6px;
  font-size: 16px;
}

.project-hero {
  width: 100%;
  border-radius: 16px;
  margin: 20px 0 30px;
}

.section-title {
  margin-top: 30px;
  margin-bottom: 10px;
}

.gallery-img {
  width: 100%;
  border-radius: 14px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===== IMAGE COMPARISON SLIDER ===== */

.image-compare {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  border-radius: 16px;
  overflow: hidden;
  margin: 20px 0 30px;
}

/* Images */
.compare-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}

/* Reveal top image */
.compare-img.after {
  clip-path: inset(0 50% 0 0);
}

/* Slider */
.slider {
  position: absolute;
  inset: 0;
  width: 100%;
  background: transparent;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

/* Remove default styles */
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 3px;
  height: 100%;
  background: white;
}

.slider::-moz-range-thumb {
  width: 3px;
  height: 100%;
  background: white;
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  background: #BA041C;
  opacity: 75%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}


/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 900px) {
  .container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

/* Phone */
@media (max-width: 600px) {
  .card {
    padding: 22px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .card h1 {
    font-size: 22px;
  }

  .social.linkedin {
    display: inline-block;
    padding: 10px 14px;
    background: #222;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .social.linkedin:hover {
    background: #3a6ea5;
    transform: translateY(-2px);
  }
}
