/* Custom Fonts */
@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("fonts/AlteHaasGroteskRegular.ttf") format("truetype");
}

@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("fonts/AlteHaasGroteskBold.ttf") format("truetype");
}

@font-face {
  font-family: "Gobitta";
  src: url("fonts/GobittaRegular-0vBZ4.otf") format("opentype");
}
@font-face {
  font-family: "La Isla Tortuga";
  src: url("fonts/LaIslaTortuga.woff") format("woff");
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Alte Haas Grotesk Bold", sans-serif;
  background-color: #171717;
  color: #ff006e;
  line-height: 1.6;
}

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

ul {
  list-style: none;
}

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

/* ==========================================================================
                                NAVIGATION
========================================================================== 
*/
nav {
  font-family: "Gobitta", serif;
  color: #fafdea;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #17171753;
  backdrop-filter: blur(2.5px);
  z-index: 1200;
  padding: 0.9rem 0;

  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.nav-links {
  display: flex;
  gap: 4rem;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;

  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.5s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ff006e;
}

/* ==========================================================================
                                HERO / HOME
========================================================================== 
*/
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 120px;
}

.hero-content {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
}

@media (min-width: 900px) {
  .hero-content {
    flex-direction: row;
  }
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-family: "La Isla Tortuga", cursive;
  font-size: clamp(11rem, 9vw, 9rem);
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #fafdea;
  white-space: nowrap;
  margin-bottom: -1rem;

  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-subtitle {
  font-family: "Gobitta", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: normal;
  color: #ff006e;
  line-height: 0.85;
  margin-bottom: 3rem;
}

.hero-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  max-width: 600px;
}

.hero-tagline {
  font-family: "Gobitta", serif;
  font-size: 1rem;
  font-weight: bold;
  color: #dbff49;
  margin-bottom: 0.8rem;

  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-links a {
  font-size: 1.5rem;
  color: #ffffff;
  transition: color 0.5s ease;
}

.social-links a:hover {
  color: #dbff49;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.hero + .section {
  padding-top: 0.3rem;
}

/* --- Download Buttons --- */
.btn {
  font-family: "Gobitta", serif;
  font-weight: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 2px solid #ff006e;
  border-radius: 15px;
  color: #ff006e;
  font-weight: bold;
  font-size: 0.9rem;
  text-align: center;
  background: transparent;
  cursor: pointer;

  margin-bottom: 1.3rem;
  margin-top: -25px;
  box-shadow: inset 0 0 0 0 #ff006e;
  transition: all ease-out 0.4s;
}

.btn:hover {
  border: 2px solid #ff006e;
  color: #fafdea;
  box-shadow: inset 0 -100px 0 0 #ff006e;
}

.btn:active {
  transform: scale(1);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.placeholder {
  background-color: transparent;
}

.portrait-placeholder {
  width: 100%;
  max-width: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.portrait-placeholder img {
  width: 150%;
  height: auto;
  display: block;
  image-rendering: crisp-edges;
}

.section {
  padding: 1.5rem 0;
}

.about-text,
.tech-tools,
.experience-timeline {
  margin-bottom: 2rem !important;
}

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }
}

.section-title {
  font-family: "Gobitta", serif;
  color: #ff006e;

  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 2rem;
  text-transform: uppercase;
  font-weight: normal;
}

/* ==========================================================================
                                  ABOUT
========================================================================== 
*/
.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 900px;
  margin-bottom: 4rem;
  color: #444;
}

.tech-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  background-color: #fafdea;
  border: 1px solid #fafdea;
}

/* Timeline */
.experience-timeline {
  max-width: 800px;
  border-left: 2px solid #ff006e;
  padding-left: 2rem;
  margin-left: 1rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.45rem;
  top: 5px;
  width: 12px;
  height: 12px;
  background-color: #fafdea;
  border: 3px solid #ff006e;
  border-radius: 50%;
}

.timeline-year {
  font-size: 1.4rem;
  font-weight: bold;
  color: #ff006e;
  margin-bottom: 0.2rem;
}

.timeline-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.timeline-company {
  font-weight: bold;
  font-size: 1.2rem;
}

.timeline-duration {
  color: #666;
  font-size: 0.85rem;
  background-color: #fafdea;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.timeline-position {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  color: #555;
}

/* ==========================================================================
                                 PROJECTS
========================================================================== 
*/
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background-color: #fafdea;
  border: 1px solid #fafdea;
  border-radius: 8px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
  border-color: #ccc;
}

.portrait-placeholder img {
  max-width: 150%;
  max-height: 150%;
  margin-top: -80px;

  object-fit: scale-down;
  object-position: center;
}

.project-img-placeholder {
  height: 350px;
  background-color: #fafdea;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
}

.project-info {
  padding: 1.5rem;
  text-align: center;
}

.project-name {
  font-weight: bold;
  font-size: 1.2rem;
}

.view-all-container {
  text-align: center;
  margin-top: 2rem;
}

/* ==========================================================================
                                 CONTACTS
========================================================================== 
*/
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
}

.contact-info,
.contact-form-container {
  flex: 1;
  min-width: 300px;
}

.contact-subtitle {
  font-family: "Gobitta", serif;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: normal;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-weight: bold;
  font-size: 0.9rem;
}

.form-control {
  padding: 0.8rem;
  border: 1px solid #fafdea;
  border-radius: 4px;
  background-color: #fafdea;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: #171717;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  align-self: flex-start;
  background-color: #171717;
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.submit-btn:hover {
  background-color: #ff006e;
}

/* ==========================================================================
                                  FOOTER
========================================================================== 
*/
footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid #fafdea;
  margin-top: 4rem;
  position: relative;
  color: #666;
}

/* Scroll Back to Top Button */
.scroll-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 1000;

  /* Hidden State */
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);

  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ff006e;
  color: #fafdea;
  font-family: "Gobitta", serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  transition: all 0.3s ease;
  overflow: hidden;
}

.scroll-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top i {
  transition-duration: 0.3s;
  font-size: 1rem;
}

.scroll-top:hover {
  width: 140px;
  border-radius: 50px;
  background-color: #dbff49;
  border-color: #ff006e;
}

.scroll-top:hover i {
  transform: translateY(-200%);
}

.scroll-top::before {
  position: absolute;
  bottom: -20px;
  content: "BACK TO TOP";
  color: #ff006e;
  font-size: 0px;
  transition-duration: 0.3s;
  white-space: nowrap;
}

.scroll-top:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-content {
    text-align: center;
    padding-top: 2rem;
  }
  .social-links,
  .btn-group {
    justify-content: center;
  }
  .portrait-placeholder {
    width: 250px;
    height: 330px;
  }
}

/* ======================================================================= */
/*                      TABLET / IPAD RESPONSIVENESS                       */
/* ======================================================================= */
@media screen and (max-width: 1024px) {
  .hero {
    padding-top: 80px;
  }

  .hero-content {
    gap: 2rem;
  }

  .hero-title {
    font-size: clamp(6rem, 8vw, 8rem) !important;
  }

  .hero-subtitle {
    font-size: clamp(2rem, 3vw, 2.5rem) !important;
  }
  .hero-image {
    flex: 0 0 250px;
  }

  .portrait-placeholder {
    max-width: 200px;
  }

  .hero-right {
    gap: 0.5rem;
  }

  .section {
    padding: 1.5rem 0;
  }
}

/* ======================================================================= */
/*                      MOBILE PHONE RESPONSIVENESS                        */
/* ======================================================================= */
@media screen and (max-width: 768px) {
  .portrait-placeholder {
    height: 300px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-img-placeholder {
    height: 220px;
  }
}
