/* ================= RESET / BASE ================= */

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

body {
  font-family: system-ui, sans-serif;
  line-height: 1.6;
  color: black;
  background-color: #f8fafc;
}

h2{
  font-size: 2.5rem;
}

h3{
  margin-bottom: 0.25rem;
  color: #2563eb;
  font-size: 1.3rem;
}

p{
  color: black;
  font-size: 1.15rem;
}


#main-page{
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.035) 0%,
    rgba(37, 99, 235, 0.02) 35%,
    rgba(37, 99, 235, 0.01) 65%,
    transparent 100%
  );
}



/* ================= NAVBAR ================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);

  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;

  transition: box-shadow 0.25s ease;
}

.name {
  position: relative;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: #0f172a;

  transition: color 0.2s ease;
}

.name::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;

  background-color: #2563eb;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.name:hover {
  color: #2563eb;
}

.name:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-container {
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.35rem;
}

nav a {
  position: relative;
  margin-left: 1.5rem;
  text-decoration: none;
  color: #0f172a;
  font-weight: 500;

  transition: color 0.2s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;

  background-color: #2563eb;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

nav a:hover {
  color: #2563eb;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  background-color: #0f172a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ================= LANDING PAGE ================= */

.LP {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.LP-container {
  max-width: 1360px;
  width: 100%;
  margin: auto;

  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  line-height: 1.1;
  
}

.LP-text {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlide 1.2s ease forwards;
}

@keyframes fadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.LP-text h1 {
  font-size: 6rem;
  padding-bottom: 0%;
  color: #0f172a;
  font-family: ui-serf, Georgia, Cambria, "Times New Roman", Times, serif;
}

.LP-text h2 {
  font-size: 4rem;
  color: #2563eb;
}

.LP-buttons {
  display: flex;
  gap: 1rem;
}

.profile-photo {
  width: 500px;
  height: 500px;

  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #2563eb;
}

.LP-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.parallax-circles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.parallax-circles .circle {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(37, 99, 235, 0.15);
  transition: transform 0.2s ease;
  transform: translate(-50%, -50%);
}

.parallax-circles .circle:nth-child(1) { width: 100px; height: 100px; top: 20%; left: 15%; }
.parallax-circles .circle:nth-child(2) { width: 80px; height: 80px; top: 70%; left: 25%; }
.parallax-circles .circle:nth-child(3) { width: 120px; height: 120px; top: 40%; left: 75%; }
.parallax-circles .circle:nth-child(4) { width: 60px; height: 60px; top: 65%; left: 50%; }
.parallax-circles .circle:nth-child(5) { width: 90px; height: 90px; top: 35%; left: 85%; }
.parallax-circles .circle:nth-child(6) { width: 70px; height: 70px; top: 10%; left: 60%; }
.parallax-circles .circle:nth-child(7) { width: 50px; height: 50px; top: 50%; left: 10%; }
.parallax-circles .circle:nth-child(8) { width: 110px; height: 110px; top: 80%; left: 70%; }


/* ================= BUTTONS ================= */

.btn {
  padding: 1rem 1.25rem;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 18px;
  font-size: 1.5rem;

  transition:
  background-color 0.25s ease,
  color 0.25s ease,
  transform 0.25s ease,
  box-shadow 0.25s ease;
}

.primary {
  background: #f8fafc;
  border: 1px solid #2563eb;
  color: #2563eb;
}

.secondary {
  background: #f8fafc;
  border: 1px solid #2563eb;
  color: #2563eb;
}

.btn:hover {
  background-color: #2563eb;
  color: white;

  transform: translateY(-4px) scale(1.05);

  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

/* ================= SECTIONS ================= */

.section {
  max-width: 1100px;
  margin: auto;
  padding: 4rem 2rem;
}

/* ================= ABOUT ME ================= */

.about-text .greeting {
  font-size: 1.75rem;
  color: #2563eb;
  font-weight: 500;
}

.greeting{
  padding-bottom: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 3rem;
  margin-top: 1.5rem;
}

.resume-callout {
  margin: 3rem auto 0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);

  padding: 2rem;
  border-radius: 12px;

  background: rgba(37, 99, 235, 0.08);

  border: 1px solid rgba(37, 99, 235, 0.15);
  text-align: center;
  font-size: 1.15rem;
}

.resume-callout h3 {
  margin-bottom: 0.5rem;
  color: #2563eb;
  font-size: 1.5rem;
}

.btn-resume {
  display: inline-block;
  margin-top: 1rem;
  width: 300px;

  padding: .75rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.4rem;

  border: 1px solid #2563eb;
  color: #2563eb;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-resume:hover {
  background-color: #2563eb;
  color: white;

  transform: translateY(-4px) scale(1.05);

  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.about-highlights {
  display: grid;
  gap: 1.25rem;
}

.highlight-card {
  padding: 1.25rem;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.15);
  border-color: #2563eb;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--delay, 0s);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.about {
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(circle at 60% 20%, rgba(37, 99, 235, 0.05) 0 80px, transparent 81px),
    radial-gradient(circle at 15% 62%, rgba(37, 99, 235, 0.05) 0 80px, transparent 81px),
    radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.05) 0 60px, transparent 61px);
  z-index: -1;
}

/* ================= SKILLS ================= */

.skills-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: center;
  margin-top: 4rem;
}

#row1{
  margin-top: 1.5rem;
}

.skills-row.reverse {
  grid-template-columns: 2fr 1fr;
}

.skills-row.reverse .skills-info {
  order: 2;
}

.skills-row.reverse .skills-list {
  order: 1;
}

.skills-info h3 {
  color: #2563eb;
  margin-bottom: 0.25rem;
  font-size: 1.4rem;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 1.25rem;
}

.skill-card {
  position: relative;

  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fafc 100%
  );

  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 14px;

  padding: .75rem 0.25rem;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 6px 16px rgba(37, 99, 235, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.skill-card span {
  font-size: 1rem;
  font-weight: 600;
  color: black;
}

.skill-card img {
  width: 65px;
  height: 65px;
  filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.25));
  transition: transform 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.05);

  border-color: #2563eb;

  box-shadow:
    0 12px 24px rgba(37, 99, 235, 0.25),
    0 6px 12px rgba(0, 0, 0, 0.06);
}

.skill-card:hover img {
  transform: scale(1.15);
}

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

.skills::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(circle at 70% 17%, rgba(37, 99, 235, 0.05) 0 60px, transparent 61px),
    radial-gradient(circle at 35% 50%, rgba(37, 99, 235, 0.05) 0 70px, transparent 70px),
    radial-gradient(circle at 88% 74%, rgba(37, 99, 235, 0.05) 0 85px, transparent 86px),
    radial-gradient(circle at 27% 83%, rgba(37, 99, 235, 0.05) 0 50px, transparent 51px);
  z-index: -1;
}

/* ================= PROJECTS ================= */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 1.5rem;
}

.project-card {
  display: block;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;

  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: start;

  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25), 0 6px 12px rgba(0, 0, 0, 0.06);
  border-color: #2563eb;
}

/* Project image */
.project-img {
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;

  object-fit: cover;
  object-position: top;

  border-radius: 0.75rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.15));
  transition: transform 0.3s ease;
}

/* Lift image slightly on hover */
.project-card:hover .project-img {
  transform: scale(1.05);
}

/* Titles & tech */
.project-card h3 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  color: #2563eb;
}

.tech-label {
  color: #2563eb;
  font-size: 1.15rem;
}

.projects {
  position: relative;
  overflow: hidden;
}

.projects::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.05) 0 60px, transparent 61px),
    radial-gradient(circle at 7% 90%, rgba(37, 99, 235, 0.05) 0 70px, transparent 71px),
    radial-gradient(circle at 80% 93%, rgba(37, 99, 235, 0.05) 0 50px, transparent 51px);
  z-index: -1;
}



/* ================= CONTACT ================= */
.contact-text {
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.contact-header{
  margin-bottom: 0.5rem;
  color: #2563eb;
  font-size: 1.5rem;
}

.content {
  margin: 1.5rem auto 0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);

  padding: 2rem;
  border-radius: 12px;

  background: rgba(37, 99, 235, 0.08);

  border: 1px solid rgba(37, 99, 235, 0.15);
  text-align: center;
}

#email{
  color:#2563eb;
  text-decoration: none;
}


/* Contact Cards */
.contact-buttons {
  display: grid;
  gap: 1rem;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  max-width: 1100px;
  margin: 0 auto;
}

.btn-contact {
  display: inline-block;
  margin-top: 1rem;
  width: 100%;
  max-width: 300px;
  padding: .75rem 1rem;
  text-decoration: none;
  border-radius: 4px;
  font-size: 1.4rem;

  border: 1px solid #2563eb;
  color: #2563eb;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.btn-contact:hover {
  background-color: #2563eb;
  color: white;

  transform: translateY(-4px) scale(1.05);

  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.contact {
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  background-image:
    radial-gradient(circle at 85% 40%, rgba(37, 99, 235, 0.05) 0 70px, transparent 70px),
    radial-gradient(circle at 5% 55%, rgba(37, 99, 235, 0.05) 0 50px, transparent 51px);
}


/* ================= FOOTER ================= */
.site-footer {
  background-color: #1e3a8a;
  color: #f0f4f8;
  padding: 2rem 1.5rem;
  text-align: center;
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.footer-container p{
  color: #f0f4f8;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-links a {
  color: #60a5fa;
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: underline;
}

.footer-links a:hover {
  color: #93c5fd;
}

.footer-links span {
  font-weight: 500;
  color: #f0f4f8;
}

/* ================= RESPONSIVENESS ================= */
@media (max-width: 1360px){
  .LP-container {
    max-width: 980px;
  }

  .LP-text h1 {
    font-size: 5.5rem;
  }

  .LP-text h2 {
    font-size: 3.5rem;
  }

  .profile-photo {
    width: 450px;
    height: 450px;
    border: 4px solid #2563eb;
  }
}


@media (max-width: 1000px) {
  .LP {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    text-align: center;
  }

  .LP-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 700px;
  }

  .LP-text {
    max-width: 100%;
  }

  .LP-text h1 {
    font-size: 4.5rem;
  }

  .LP-text h2 {
    font-size: 3rem;
  }

  .LP-buttons {
    justify-content: center;
  }

  .profile-photo {
    width: 400px;
    height: 400px;
  }

  .parallax-circles .circle:nth-child(1) { width: 70px; height: 70px; top: 15%; left: 15%; }
  .parallax-circles .circle:nth-child(2) { width: 60px; height: 60px; top: 85%; left: 10%; }
  .parallax-circles .circle:nth-child(3) { width: 90px; height: 90px; top: 60%; left: 85%; }
  .parallax-circles .circle:nth-child(4) { width: 50px; height: 50px; top: 80%; left: 60%; }
  .parallax-circles .circle:nth-child(5) { width: 65px; height: 65px; top: 15%; left: 75%; }
  .parallax-circles .circle:nth-child(6) { width: 55px; height: 55px; top:50%; left: 25%; }
  .parallax-circles .circle:nth-child(7) { width: 45px; height: 45px; top: 70%; left: 5%; }
  .parallax-circles .circle:nth-child(8) { width: 80px; height: 80px; top: 90%; left: 70%; }
}

@media (max-width: 800px) {
  .h2 {
    font-size: 1.75rem;
  }
  .profile-photo {
    width: 350px;
    height: 350px;
  }
  .LP-text h1 {
    font-size: 4rem;
  }

  .LP-text h2 {
    font-size: 2.5rem;
  }

  .btn {
    margin-top: 14px;
    font-size: 1.25rem;
  }

  h3{
    font-size: 1.25rem;
  }
  p {
    font-size: 1.05rem;
  }
  
  .about-text .greeting {
    font-size: 1.5rem;
  }

  .resume-callout h3 {
    font-size: 1.25rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-highlights {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .highlight-card {
    flex: 1 1 200px;
    max-width: 250px;
  }

  .btn-resume {
    width: 225px;
    padding: .5rem .75rem;
    font-size: 1.3rem;
  }

  .resume-callout h3{
    font-size: 1.3rem;
  }

  .skill-card {
    border-radius: 10px;

    padding: .75rem 0.25rem;
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
  }

  .skill-card span {
    font-size: .9rem;
    font-weight: 600;
    color: black;
  }

  .skill-card img {
    width: 45px;
    height: 45px;
    filter: drop-shadow(0 4px 6px rgba(37, 99, 235, 0.25));
    transition: transform 0.25s ease;
  }

  .projects-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
      max-width: 550px;
      justify-self: center;
  }

  .btn-contact {
    font-size: 1.2rem;
    padding: 0.6rem 0.8rem;
  }
}

@media (max-width: 700px){
  .contact-buttons {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  
  .btn-contact {
    max-width: 400px;
    font-size: 1.3rem;
    padding: 0.7rem 1rem;
  }

  .about-highlights {
    flex-direction: column;
  }

  .highlight-card {
    flex: none;
    max-width: none;
    justify-items: center;
  }

  .skills-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: left;
  }

  .skills-row.reverse {
    display: flex;
    flex-direction: column;
  }

  .skills-row.reverse .skills-info,
  .skills-row.reverse .skills-list {
    order: unset;
  }

  .skills-list {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

  .skills-info {
    width: 100%;
  }
  
  .nav-container {
    font-size: 1.2rem;
  }

  .name {
    font-size: 1.2rem;
  }

  .parallax-circles .circle:nth-child(1) { width: 60px; height: 60px; top: 25%; left: 15%; }
  .parallax-circles .circle:nth-child(2) { width: 50px; height: 50px; top: 85%; left: 10%; }
  .parallax-circles .circle:nth-child(3) { width: 70px; height: 70px; top: 60%; left: 80%; }
  .parallax-circles .circle:nth-child(4) { width: 45px; height: 45px; top: 80%; left: 65%; }
  .parallax-circles .circle:nth-child(5) { width: 55px; height: 55px; top: 15%; left: 75%; }
  .parallax-circles .circle:nth-child(6),
  .parallax-circles .circle:nth-child(7),
  .parallax-circles .circle:nth-child(8) {
    display: none;
  }
}

@media (max-width: 600px) {
  nav.nav-links {
    position: absolute;
    top: 62.72px;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }

  nav.nav-links a {
    margin: 0.75rem 0;
    font-size: 1.25rem;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -5px);
  }

  nav.nav-links.active {
    display: flex;
  }
}

@media (max-width: 500px){
  .LP-text h1 {
    font-size: 3.5rem;
  }

  .LP-text h2 {
    font-size: 2rem;
  }

  .profile-photo {
    width: 300px;
    height: 300px;
  }

  .btn {
    padding: .75rem 1rem;
    font-size: 1.2rem;
  }
}

@media (max-width: 400px) {
  .LP-text h1 {
    font-size: 3rem;
  }

  .LP-text h2 {
    font-size: 1.8rem;
  }

  .profile-photo {
    width: 250px;
    height: 250px;
  }

  .btn {
    padding: .6rem .8rem;
    font-size: 1.15rem;
  }

  .skill-card {
    padding: .5rem .2rem;
  }

  .skill-card span {
    font-size: .9rem;
  }

  .skill-card img {
    width: 40px;
    height: 40px;
  }
}
