/* ============================================================
   Vagelis Tsopanos — Developer Portfolio
   Design inspired by Pantry/Recipes-hub design system
   ============================================================ */

:root {
  /* Core palette */
  --black: #151515;
  --green: #4ee1a0;
  --green-dark: #3bc485;
  --green-glow: rgba(78, 225, 160, 0.15);
  --off-black: #1c1c1c;
  --card-bg: #1a1a2e;
  --gray: #d9d9d9;
  --gray-muted: #999999;
  --white: #ffffff;
  --red: #ff6f5b;

  /* Gradients */
  --gradient-green: linear-gradient(135deg, #4ee1a0, #3bc485, #2dd4bf);
  --gradient-card: linear-gradient(135deg, rgba(78, 225, 160, 0.06), rgba(36, 36, 36, 0.35));
  --glass-border: rgba(78, 225, 160, 0.1);

  /* Shadows — layered, subtle like Pantry */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 20px rgba(78, 225, 160, 0.12);

  /* Transitions — consistent cubic-bezier from Pantry */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 250ms var(--ease-out);
  --transition-smooth: 350ms var(--ease-out);

  /* Spacing */
  --section-spacing: 8rem;
}

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

/* ===== Custom Scrollbar (Pantry-style) ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--green);
  color: var(--black);
  padding: 0.5rem 1rem;
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ===== Typography ===== */
.heading-XL {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2.5px;
}
@media (max-width: 768px) {
  .heading-XL {
    font-size: 4.5rem;
    letter-spacing: -2px;
  }
}
@media (max-width: 425px) {
  .heading-XL {
    font-size: 2.5rem;
    letter-spacing: -1.1px;
  }
}

.heading-L {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: -1.5px;
}
@media (max-width: 425px) {
  .heading-L {
    font-size: 2rem;
    line-height: 1.25;
    letter-spacing: -1px;
  }
}

.heading-ML {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.4px;
}
@media (max-width: 425px) {
  .heading-ML {
    font-size: 1.5rem;
    line-height: 1.33;
    letter-spacing: -0.3px;
  }
}

.heading-M {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: -0.3px;
}

.body-paragraph {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
@media (max-width: 425px) {
  .body-paragraph {
    font-size: 1rem;
    line-height: 1.65;
  }
}

/* ===== Section Titles — Pantry-style elegance ===== */
.section-title {
  text-align: center;
  margin-bottom: 4rem;
}
.section-title span {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 425px) {
  .section-title {
    margin-bottom: 2.5rem;
  }
}

/* ===== Section Inner ===== */
.section-inner {
  max-width: calc(1110px + 4rem);
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 425px) {
  .section-inner {
    padding: 0 1rem;
  }
}

/* ===== Buttons — refined with Pantry uppercase tracking ===== */
.custom-btn {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.15em;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--green);
  padding-bottom: 10px;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--transition-base);
}
.custom-btn:hover {
  color: var(--green);
  cursor: pointer;
}

.cta-btn {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}
.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transition: left 0.5s ease;
}
.cta-btn:hover::before {
  left: 100%;
}

.primary-btn {
  background: var(--gradient-green);
  color: var(--black);
  box-shadow: 0 4px 20px rgba(78, 225, 160, 0.2);
}
.primary-btn:hover {
  box-shadow: 0 6px 28px rgba(78, 225, 160, 0.35);
  transform: translateY(-2px);
}
.primary-btn.success {
  background: var(--green);
  box-shadow: 0 4px 24px rgba(78, 225, 160, 0.5);
}

.secondary-btn {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(78, 225, 160, 0.4);
}
.secondary-btn:hover {
  background: rgba(78, 225, 160, 0.08);
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
}

/* ===== Glass Card — refined with layered shadows ===== */
.glass-card {
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(78, 225, 160, 0.25);
}

/* ===== Global ===== */
p,
button,
h1,
h2,
h3,
svg,
span,
input,
textarea,
strong {
  color: var(--white);
}

a {
  text-decoration: none;
}

hr {
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.06);
  border-style: solid;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--black);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Selection ===== */
::selection {
  background: rgba(78, 225, 160, 0.25);
  color: var(--white);
}

/* ===== Reveal Animations ===== */
.reveal-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Header / Nav ===== */
.adamkeyes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}
.adamkeyes .icons {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.adamkeyes .icons svg {
  width: 1.5rem;
  height: 1.5rem;
}
.adamkeyes .icons svg:hover {
  cursor: pointer;
}
.adamkeyes .icons svg:hover path {
  fill: var(--green);
  transition: fill var(--transition-base);
}
@media (max-width: 425px) {
  .adamkeyes {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
  }
  .adamkeyes .icons {
    gap: 1.5rem;
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
@media (max-width: 425px) {
  .nav-right {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ===== Hire Badge — subtle pulse ===== */
.hire-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(78, 225, 160, 0.08);
  border: 1px solid rgba(78, 225, 160, 0.4);
  border-radius: 50px;
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(78, 225, 160, 0.2);
  }
  50% {
    box-shadow: 0 0 16px 2px rgba(78, 225, 160, 0.1);
  }
}

/* ===== Header ===== */
header {
  position: relative;
  margin-top: 2.5rem;
  padding: 0 2rem;
  max-width: calc(1110px + 4rem);
  margin: 0 auto;
}
header .icons {
  margin-right: 1.85rem;
}
header .profile-image {
  position: absolute;
  background-image: url("../assets/images/image-profile-desktop.webp");
  background-repeat: no-repeat;
  background-size: contain;
  top: -2.5rem;
  right: 0;
  width: 27.8rem;
  height: 45rem;
  z-index: -1;
  overflow: hidden;
}
header .img-rings {
  position: absolute;
  top: 5.56rem;
  left: -16.56rem;
}
header h1 {
  margin-top: 8rem;
  margin-bottom: 2.7rem;
}
header h1 span {
  border-bottom: 4px solid var(--green);
}
header h1 .break-line-1 {
  display: none;
}
header h1 .break-line-3 {
  display: none;
}
header p {
  max-width: 27.8rem;
  margin-bottom: 2rem;
  color: var(--gray);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ===== Hero CTA ===== */
.hero-cta {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 4.125rem;
}
.hero-cta a {
  text-decoration: none;
}
@media (max-width: 425px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .hero-cta .cta-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  header h1 .break-line-1 {
    display: inline;
  }
  header h1 .break-line-2 {
    display: none;
  }
  header h1 .break-line-3 {
    display: inline;
  }
  header .profile-image {
    background-image: url("../assets/images/image-profile-tablet.webp");
    max-width: 21rem;
  }
  header .icons {
    margin-right: 0rem;
  }
  header .img-rings {
    top: 3.25rem;
    left: -50%;
  }
}
@media (max-width: 425px) {
  header {
    margin-top: 1.25rem;
    text-align: center;
    padding: 0 1rem;
  }
  header h1 {
    margin-top: 15rem;
  }
  header h1 .break-line-1 {
    display: none;
  }
  header h1 .break-line-2 {
    display: none;
  }
  header h1 .break-line-3 {
    display: inline;
  }
  header .profile-image {
    background-image: url("../assets/images/image-profile-mobile.webp");
    width: 10.875rem;
    height: 20rem;
    left: 0;
    right: 0;
    top: 7rem;
    margin: 0 auto;
    z-index: -1;
  }
  header .img-rings {
    left: -23rem;
    top: 7.7rem;
    z-index: -1;
  }
}

/* ===== Main ===== */
main {
  position: relative;
  max-width: calc(1110px + 4rem);
  margin: 6rem auto 0;
}
main > hr {
  margin: 0 2rem;
}
main .line-down {
  display: none;
}
@media (max-width: 425px) {
  main .line-down {
    display: block;
  }
}

/* ===== About Section ===== */
.about-section {
  padding: var(--section-spacing) 0;
}
.about-content {
  max-width: 48rem;
  margin: 0 auto;
}
.about-text p {
  color: var(--gray);
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.8;
  letter-spacing: 0.01em;
}
.about-text strong {
  color: var(--green);
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.highlight-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--gradient-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}
.highlight-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(78, 225, 160, 0.2);
}
.highlight-number {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.highlight-label {
  display: block;
  font-size: 0.7rem;
  color: var(--gray-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-top: 0.5rem;
}
@media (max-width: 590px) {
  .about-highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ===== Skills / Abilities ===== */
.abilities {
  margin-top: 4.5rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-row-gap: 3.625rem;
  grid-column-gap: 1.875rem;
}
.abilities div {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.abilities div p {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-muted);
}
@media (max-width: 768px) {
  .abilities {
    margin-top: 3.25rem;
    grid-template-columns: 1fr 1fr;
    grid-row-gap: 3.25rem;
    grid-column-gap: 0.4375rem;
  }
}
@media (max-width: 590px) {
  .abilities {
    grid-template-columns: 1fr;
    grid-row-gap: 1.5rem;
  }
  .abilities div {
    align-items: center;
    gap: unset;
  }
}
@media (max-width: 425px) {
  .abilities {
    margin: 2.5rem 0;
    padding: 0 1rem;
  }
}

/* ===== Services Section ===== */
.services-section {
  padding: var(--section-spacing) 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
.service-card {
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Gradient top border on hover — Pantry pattern */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-green);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}
.service-card:hover::before {
  opacity: 1;
}
.service-icon {
  margin-bottom: 1.5rem;
}
.service-icon svg {
  color: var(--green);
  stroke: var(--green);
  opacity: 0.8;
  transition: opacity var(--transition-base);
}
.service-card:hover .service-icon svg {
  opacity: 1;
}
.service-card h3 {
  margin-bottom: 1rem;
  letter-spacing: -0.3px;
}
.service-card p {
  color: var(--gray-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  letter-spacing: 0.01em;
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== Projects ===== */
.projects {
  margin: var(--section-spacing) 0;
  padding: 0 2rem;
}
.projects .projects-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.projects .projects-content {
  margin-top: 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-column-gap: 1.5rem;
  grid-row-gap: 4.3rem;
}
.projects .projects-content .single-project .img-div {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-smooth);
}
.projects .projects-content .single-project:hover .img-div {
  box-shadow: var(--shadow-lg);
}
.projects .projects-content .single-project .img-div img {
  width: 34rem;
  height: 25rem;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.projects .projects-content .single-project:hover .img-div img {
  transform: scale(1.04);
}
.projects .projects-content .single-project h3 {
  margin: 1.25rem 0 0.4375rem;
  transition: color var(--transition-base);
}
.projects .projects-content .single-project:hover h3 {
  color: var(--green);
}
.projects .projects-content .single-project .tech-used {
  display: flex;
  gap: 1.125rem;
  flex-wrap: wrap;
}
.projects .projects-content .single-project .tech-used span {
  color: var(--gray-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* --- Smooth overlay appearance --- */
.projects .projects-content .single-project .overlay-project {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.75) 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
  pointer-events: none;
  will-change: opacity, transform;
  border-radius: 12px;
}
.projects .projects-content .single-project .overlay-project a {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}
.projects .projects-content .single-project .img-div:hover .overlay-project,
.projects .projects-content .single-project .img-div:focus-within .overlay-project {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.projects .projects-content .single-project .img-div:hover .overlay-project a:nth-child(1),
.projects .projects-content .single-project .img-div:focus-within .overlay-project a:nth-child(1) {
  transition-delay: 0.05s;
  opacity: 1;
  transform: none;
}
.projects .projects-content .single-project .img-div:hover .overlay-project a:nth-child(2),
.projects .projects-content .single-project .img-div:focus-within .overlay-project a:nth-child(2) {
  transition-delay: 0.12s;
  opacity: 1;
  transform: none;
}
.projects .projects-content .single-project:hover {
  cursor: pointer;
}

@media (max-width: 1178px) {
  .projects .projects-content {
    grid-row-gap: 3.75rem;
    justify-items: center;
  }
  .projects .projects-content .single-project .img-div img {
    width: 21rem;
    height: 15rem;
  }
}
@media (max-width: 736px) {
  .projects .projects-content {
    grid-template-columns: 1fr;
    grid-row-gap: 2.5rem;
  }
}
@media (max-width: 375px) {
  .projects .projects-content .single-project .img-div img {
    max-width: 90vw;
    height: auto;
  }
}
@media (max-width: 768px) {
  main {
    margin-top: 3.75rem;
  }
}
@media (max-width: 425px) {
  :root {
    --section-spacing: 4rem;
  }
  main {
    margin-top: 2rem;
  }
}
@media (max-width: 425px) {
  .projects {
    margin: 3rem 0;
    padding: 0 1rem;
  }
  .projects .projects-title {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  .projects .projects-content {
    margin-top: 2.5rem;
  }
}

/* ===== Testimonials Section ===== */
.testimonials-section {
  padding: var(--section-spacing) 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.testimonial-card {
  padding: 2.5rem;
  position: relative;
}
.testimonial-card::after {
  content: "\201C";
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 5rem;
  line-height: 1;
  color: rgba(78, 225, 160, 0.06);
  font-family: "Playfair Display", Georgia, serif;
  pointer-events: none;
}
.testimonial-stars {
  margin-bottom: 1.25rem;
}
.testimonial-stars span {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-right: 2px;
}
.testimonial-card p {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--black) !important;
}
.testimonial-author strong {
  display: block;
  font-size: 1rem;
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--gray-muted);
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== Footer ===== */
footer {
  padding: 5.25rem 0 2.5rem;
  background-color: var(--off-black);
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-green);
  opacity: 0.7;
}
footer .footer-content {
  padding: 0 2rem;
  max-width: calc(1110px + 4rem);
  margin: 0 auto;
}
footer .contact {
  display: flex;
  justify-content: space-between;
}
footer .contact .footer-text {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}
footer .contact .footer-text h2 span {
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: none;
}
footer .contact .footer-text p {
  max-width: 27.8rem;
  color: var(--gray);
  line-height: 1.7;
}
footer .contact form {
  width: 27.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2rem;
}
footer .contact form .input-box {
  width: 100%;
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 1rem;
  align-items: flex-start;
  transition: border-color var(--transition-base);
}
footer .contact form .input-box input {
  flex: 1;
}
footer .contact form div:has(input:focus) {
  border-color: var(--green);
}
footer .contact form input,
footer .contact form textarea {
  background-color: transparent;
  border: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
footer .contact form input:focus,
footer .contact form textarea:focus {
  outline: none;
}
footer .contact form textarea {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  resize: vertical;
  transition: border-color var(--transition-base);
}
footer .contact form textarea:focus {
  border-bottom: 1px solid var(--green);
}
footer .contact form svg {
  display: none;
}
footer .contact form .cta-btn {
  align-self: flex-end;
}
@media (max-width: 768px) {
  footer .contact {
    flex-direction: column;
    gap: 3rem;
    justify-content: unset;
    align-items: center;
    text-align: center;
  }
  footer .contact form {
    width: 100%;
  }
}
footer hr {
  margin: 5.75rem 0 2.9rem;
  border-color: rgba(255, 255, 255, 0.06);
}

/* ===== Footer Bottom ===== */
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.footer-bottom .adamkeyes {
  padding-top: 0;
}
.copyright {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray-muted) !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
@media (max-width: 425px) {
  footer {
    padding: 2.5rem 0;
  }
}

/* ===== Project Card Animations ===== */
.single-project {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.single-project.fade-in {
  opacity: 1;
  transform: translateY(0);
}
.single-project.hidden {
  visibility: hidden;
}

/* ===== Initial Fade In ===== */
@keyframes fadeInSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-60px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.initial-fade-in {
  opacity: 0;
  animation: fadeInSlideLeft 0.7s var(--ease-out) forwards;
}
.profile-image.initial-fade-in {
  animation-delay: 0.4s;
}
.img-rings.initial-fade-in {
  animation-delay: 0.7s;
}

/* ===== Pager ===== */
#projectsPager {
  margin-top: 2rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}
#projectsPager button {
  min-width: 1rem;
  text-align: center;
  padding: 0.25rem 0.5rem;
  transition: all var(--transition-fast);
}
#projectsPager button.active-page {
  color: var(--green);
  border-color: var(--green);
  font-weight: 700;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .overlay-project,
  .overlay-project a {
    transition: none !important;
    transform: none !important;
  }
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .glass-card {
    transition: none;
  }
  .hire-badge {
    animation: none;
  }
  .cta-btn::before {
    display: none;
  }
  .single-project {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Subtle Background Glow ===== */
.about-section,
.services-section {
  position: relative;
}
.about-section::before,
.services-section::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 225, 160, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.about-section::before {
  top: -100px;
  left: -100px;
}
.services-section::before {
  top: 50%;
  right: -150px;
  transform: translateY(-50%);
}

/* ===== Featured Projects ===== */
.featured-project .img-div {
  position: relative;
}
.featured-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  background: var(--gradient-green);
  color: var(--black) !important;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.project-description {
  color: var(--gray-muted) !important;
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

/* ===== Cookie Consent Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--off-black);
  border-top: 1px solid var(--glass-border);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner p {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.cookie-banner a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem 1rem;
  }
  .cookie-actions {
    width: 100%;
    justify-content: center;
  }
}

/* ===== Theme Toggle Button ===== */
.theme-toggle {
  position: fixed;
  top: 0.85rem;
  right: 2rem;
  z-index: 999;
  background: var(--off-black);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: rgba(78, 225, 160, 0.4);
  background: rgba(78, 225, 160, 0.08);
  box-shadow: var(--shadow-glow);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  transition: stroke var(--transition-base);
}
.theme-toggle .icon-moon {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* ===== Light Theme ===== */
[data-theme="light"] {
  --black: #fafaf9;
  --green: #059669;
  --green-dark: #047857;
  --green-glow: rgba(5, 150, 105, 0.08);
  --off-black: #f0f0ee;
  --card-bg: #ffffff;
  --gray: #555555;
  --gray-muted: #777777;
  --white: #1a1a1a;
  --gradient-green: linear-gradient(135deg, #059669, #047857, #0d9488);
  --gradient-card: linear-gradient(135deg, rgba(5, 150, 105, 0.04), rgba(255, 255, 255, 0.9));
  --glass-border: rgba(5, 150, 105, 0.12);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(5, 150, 105, 0.1);
}
[data-theme="light"] body {
  background-color: var(--black);
}
[data-theme="light"] .adamkeyes .icons svg path {
  fill: var(--white);
}
[data-theme="light"] .adamkeyes .icons svg:hover path {
  fill: var(--green);
}
[data-theme="light"] header .profile-image {
  filter: none;
}
[data-theme="light"] .hire-badge {
  background: rgba(5, 150, 105, 0.06);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--green);
}
[data-theme="light"] .theme-toggle {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .theme-toggle:hover {
  border-color: rgba(5, 150, 105, 0.3);
  background: rgba(5, 150, 105, 0.06);
}
[data-theme="light"] .theme-toggle svg {
  stroke: var(--white);
}
[data-theme="light"] hr {
  border-color: rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .cookie-banner {
  background: rgba(255, 255, 255, 0.9);
  border-top-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .overlay-project {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.7) 100%);
}
[data-theme="light"] .overlay-project .custom-btn {
  color: #ffffff;
}
[data-theme="light"] .testimonial-stars span {
  color: #d97706;
}
[data-theme="light"] .author-avatar {
  color: #ffffff !important;
}
[data-theme="light"] .about-section::before,
[data-theme="light"] .services-section::before {
  background: radial-gradient(circle, rgba(5, 150, 105, 0.03) 0%, transparent 70%);
}
[data-theme="light"] footer::before {
  background: var(--gradient-green);
}
[data-theme="light"] ::selection {
  background: rgba(5, 150, 105, 0.2);
  color: var(--white);
}
[data-theme="light"] ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.18);
}
