/* CSS Reset*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* DESIGN TOKENS */

:root {

  /* Colors */
  --clr-bg: #02040a;
  --clr-bg-secondary: #07131f;
  --clr-surface: rgba(13, 27, 42, 0.75);

  --clr-primary: #55f8ff;
  --clr-secondary: #36d7d0;
  --clr-accent: #84fff7;

  --clr-text: #edf9ff;
  --clr-text-muted: #9cb7c7;

  --clr-border: rgba(255, 255, 255, 0.08);

  /* Typography */
  --ff-heading: "Space Grotesk", sans-serif;
  --ff-body: "Inter", sans-serif;

  /* Font sizes */
  --fs-900: clamp(3rem, 6vw, 4.5rem);
  --fs-800: clamp(2.2rem, 4vw, 3rem);
  --fs-700: 1.75rem;
  --fs-500: 1.125rem;
  --fs-400: 1rem;

  /* Spacing */
  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  /* Border radius */
  --radius-sm: .5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 999px;

  /* Shadows */
  --shadow-glow:
    0 0 25px rgba(85, 248, 255, .15);

  /* Animation */
  --transition:
    250ms ease;
}

/* GLOBAL STYLES */

body {
  background:

    radial-gradient(circle at top left,
      rgba(85, 248, 255, .12),
      transparent 30%),

    radial-gradient(circle at bottom right,
      rgba(54, 215, 208, .08),
      transparent 35%),

    linear-gradient(180deg,
      #030611,
      #02040a 60%,
      #010205);

  color: var(--clr-text);
  font-family: var(--ff-body);
  line-height: 1.7;

}

::selection {
  background: var(--clr-primary);
  color: #00141d;

}

img {
  border-radius: var(--radius-md);
}

.container {
  width: min(1100px, 90%);
  margin-inline: auto;
}

section {
  padding-block: 7rem;
}

a {
  transition: var(--transition);
}

h1,
h2,
h3 {
  font-family: var(--ff-heading);
  line-height: 1.2;
  letter-spacing: -1px;
}

h1 {
  font-size: var(--fs-900);
}

h2 {
  font-size: var(--fs-800);
  margin-bottom: 1rem;
}

h3 {
  font-size: var(--fs-700);
}

p {
  color: var(--clr-text-muted);
}

li {
  margin-bottom: .5rem;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(2, 4, 10, .55);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--clr-border);
}

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

  img {
    width: 52px;
    height: auto;
  }
}

nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav a {
  position: relative;
  color: var(--clr-text-muted);
  font-weight: 500;
  transition: var(--transition);
}

nav a:hover {
  color: var(--clr-primary);
  text-shadow: 0 0 10px rgba(85, 248, 255, .5);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--clr-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

nav a:hover::after {
  transform: scaleX(1);
}

main {
  padding-top: 90px;
}

/* HERO */

#hero {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
  position: relative;
  overflow: hidden;
}

#hero .container {
  flex: 1;
  margin-left: 10vw;
}

#hero figure {
  flex: 1;
  display: flex;
  justify-content: center;
}

#hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1rem;
  text-shadow: 0 0 18px rgba(85, 248, 255, .15);
  background: linear-gradient(90deg, white, var(--clr-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--clr-primary);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

#hero p {
  max-width: 38rem;
  font-size: 1.1rem;
  color: var(--clr-text-muted);
}

#socials {
  display: flex;
  gap: 1rem;
  margin-top: 2.5rem;
}

#socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(85, 248, 255, .25);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  color: var(--clr-text);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

#socials a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .12), transparent);
  transform: translateX(-100%);
  transition: .7s;
}

#socials a:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary);
  box-shadow: 0 0 30px rgba(85, 248, 255, .18);
}

#socials a:hover::before {
  transform: translateX(100%);
}

#profile-picture {
  width: min(420px, 90vw);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(85, 248, 255, .25);
  position: relative;
}

#profile-picture {
  transition:
    transform .4s ease,
    box-shadow .4s ease;

  :hover {
    transform: scale(1.03);
    box-shadow: 0 0 60px rgba(85, 248, 255, .18);
  }
}

#profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero figure {
  position: relative;
}

#hero figure::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(rgba(85, 248, 255, .35), transparent 70%);
  filter: blur(60px);
  z-index: -1;
}

#hero::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  left: -250px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(rgba(85, 248, 255, .12), transparent 70%);
  filter: blur(100px);
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0);
  }
}

#profile-picture {
  animation: float 7s ease-in-out infinite;
}

@keyframes pulseGlow {
  0% {
    transform: scale(1);
    opacity: .25;
  }

  50% {
    transform: scale(1.08);
    opacity: .4;
  }

  100% {
    transform: scale(1);
    opacity: .25;
  }
}

#hero::before {
  animation: pulseGlow 10s ease-in-out infinite;
}

.subtitle {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.subtitle::before {
  content: "";
  width: 3rem;
  height: 2px;
  background: var(--clr-primary);
}

.hero-content {
  padding-block: 4rem;
  flex: 1;
}

#about-me h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.about-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  padding: 3rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.about-content::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  right: -100px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(rgba(85, 248, 255, .12), transparent 70%);
  filter: blur(70px);
}

#introduction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;

  p {
    font-size: 1.05rem;
    max-width: 65ch;
  }
}

#introduction ul {
  display: grid;
  gap: 1rem;
}

#introduction li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#introduction li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-primary);
  box-shadow: 0 0 10px rgba(85, 248, 255, .6);
}

.about-content {
  transition: transform .4s ease, border-color .4s ease;
  max-width: 850px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  max-width: 850px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
}

.about-content:hover {
  transform: translateY(-6px);
  border-color: rgba(85, 248, 255, .25);
}

#about-me {
  padding-block: 8rem;
}

@media (max-width:900px) {
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  #introduction {
    align-items: center;
  }
}

/*CARD COMPONENT*/
.card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(85, 248, 255, .25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -120px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(rgba(85, 248, 255, .08), transparent 70%);
  filter: blur(60px);
  opacity: 0;
  transition: opacity .4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--clr-text);
}

.card p {
  color: var(--clr-text-muted);
}

.card ul {
  display: grid;
  gap: .8rem;
}

.card a {
  color: var(--clr-primary);
  transition: var(--transition);
}

.card a:hover {
  color: var(--clr-accent);
}

.glass {
  backdrop-filter: blur(18px);
  background: rgba(13, 27, 42, .72);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(85, 248, 255, .25);
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-4px);
  border-color: var(--clr-primary);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.card h3 {
  justify-content: center;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
  color: var(--clr-primary);
}

.card ul {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.card li {
  padding: .65rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(85, 248, 255, .12);
  transition: var(--transition);
}

.card li:hover {
  transform: translateY(-3px);
  border-color: var(--clr-primary);
  background: rgba(85, 248, 255, .08);
  box-shadow: 0 0 18px rgba(85, 248, 255, .15);
}

#skills {
  position: relative;
  overflow: hidden;
}

#skills::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  right: -250px;
  bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(rgba(85, 248, 255, .08), transparent 70%);
  filter: blur(90px);
}

.project-card {
  display: flex;
  flex-direction: column;
  margin: 5rem
}

.project-image {
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16/9;
  margin-bottom: 1.5rem;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-content {
  display: flex;
  flex-direction: column;
  flex: 1;

  p {
    margin-bottom: 1.5rem;
  }
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}

.tech-stack span {
  padding: .45rem .9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(85, 248, 255, .15);
  font-size: .9rem;
}

.project-links {
  margin-top: auto;
  display: flex;
  gap: 1rem;

  .btn {
    flex: 1;
  }
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, rgba(2, 4, 10, .08));
  pointer-events: none;
}

.project-card:hover {
  box-shadow: 0 25px 60px rgba(0, 0, 0, .4), 0 0 30px rgba(85, 248, 255, .08);
}

#projects {
  position: relative;
}

#projects::before {
  content: "";
  position: absolute;
  left: -200px;
  bottom: -200px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(rgba(85, 248, 255, .1), transparent 70%);
  filter: blur(100px);
}

.project-card.placeholder {
  border-style: dashed;
  display: grid;
  place-items: center;
  text-align: center;
}

/* TIMELINE */

.timeline {
  position: relative;
  display: grid;
  gap: 2.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(transparent, rgba(85, 249, 255, 0.753), transparent);
}

.card.timeline-item {
  position: relative;
  margin-left: 3rem;

  h3 {
    margin-bottom: .75rem;
  }

  strong {

    color: var(--clr-primary);

  }

  time {

    color: var(--clr-text-muted);

  }
}

.card.timeline-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: -42px;
  top: 2rem;
  background: var(--clr-primary);
  box-shadow: 0 0 18px rgba(85, 248, 255, .6);
}

.timeline-item ul {
  margin-top: 1.5rem;
  display: grid;
  gap: .8rem;
}

.timeline-item li {
  position: relative;
  padding-left: 1.4rem;
}

.timeline-item:hover::before {
  transform: scale(1.2);
}

#experience {
  position: relative;
}

#experience::before {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  right: -220px;
  top: 20%;
  border-radius: 50%;
  background: radial-gradient(rgba(85, 248, 255, .08), transparent 70%);
  filter: blur(90px);
}

@media (max-width:768px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    margin-left: 2rem;
  }

  .timeline-item::before {
    left: -28px;
  }
}

#education strong {
  color: var(--clr-text);
}

#education p {
  position: relative;
  padding-left: 1.4rem;
  padding: 0.5rem;
}

/* CONTACT */
.contact-card {
  max-width: 820px;
  margin-inline: auto;
  padding: 4rem;
  text-align: center;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.contact-card .section-title {
  margin-bottom: 1.25rem;
  background: linear-gradient(90deg, white, var(--clr-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-btn {
  min-width: 220px;
  font-weight: 600;
  letter-spacing: .03em;
  box-shadow: 0 0 20px rgba(85, 248, 255, .15);
}

.contact-btn:hover {
  box-shadow: 0 0 35px rgba(85, 248, 255, .28);
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--clr-border);
}

.contact-links a {
  padding: .75rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(85, 248, 255, .15);
  background: rgba(255, 255, 255, .04);
  transition: var(--transition);
}

.contact-links a:hover {
  transform: translateY(-3px);
  border-color: var(--clr-primary);
  background: rgba(85, 248, 255, .08);
  color: var(--clr-primary);
}

#contact::before {
  content: "";
  position: absolute;
  width: 550px;
  height: 550px;
  left: -180px;
  top: 20%;
  border-radius: 50%;
  background: radial-gradient(rgba(85, 248, 255, .08), transparent 70%);
  filter: blur(110px);
}

#contact::after {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  right: -120px;
  bottom: 5%;
  border-radius: 50%;
  background: radial-gradient(rgba(54, 215, 208, .08), transparent 70%);
  filter: blur(100px);
}

.contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(85, 248, 255, .25);
}

.contact-text {
  margin-bottom: 3rem;
  line-height: 1.9;
}

footer {
  padding: 3rem 2rem;
  text-align: center;
  color: var(--clr-text-muted);
  border-top:
    1px solid var(--clr-border);
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

footer a {
  color: inherit;
  transition: var(--transition);
}

footer a:hover {
  color: var(--clr-primary);
}