/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Alexandria', sans-serif;
  background-color: #323647;
  min-height: 100vh;
  width: 100%;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.header {
  background-color: #242734;
  height: 60px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid white;
  box-shadow: 0px 0px 60px 0px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 0 20px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  transition: opacity 0.3s ease;
  position: absolute;
  left: 20px;
  height: 60px;
}

.logo:hover {
  opacity: 0.7;
}

.logo svg {
  color: #fff;
}

.logo.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #fac942;
}

.desktop-nav {
  display: none;
  gap: 50px;
  align-items: center;
}

@media (min-width: 800px) {
  .desktop-nav {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
}

.nav-link {
  font-weight: 300;
  font-size: 16px;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 60px;
  position: relative;
}

.nav-link:hover {
  color: #fac942;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #fac942;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: white;
  padding: 8px;
  cursor: pointer;
  position: absolute;
  right: 20px;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background-color: #242734;
  border-bottom: 1px solid white;
}

.mobile-menu.active {
  display: block;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 16px;
  gap: 16px;
}

.mobile-nav-link {
  font-weight: 300;
  font-size: 16px;
  color: white;
  padding: 8px 0;
}

/* Hero Section */
.hero {
  background-color: #323647;
  width: 100%;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-content {
  width: 100%;
  padding: 32px 16px 0;
}

.hero-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  color: white;
  margin-bottom: 15px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.hero-name {
  font-weight: 700;
}

.hero-name h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}

.hero-tagline {
  font-weight: 700;
  font-size: 22px;
  line-height: 35px;
}

/* Letter Animation */
.loader-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 35px;
  width: auto;
  user-select: none;
  color: #fff;
}

.loader-letter {
  display: inline-block;
  opacity: 0;
  animation: loader-letter-anim 4s infinite linear;
  z-index: 2;
}

.loader-letter:nth-child(1) {
  animation-delay: 0.1s;
}
.loader-letter:nth-child(2) {
  animation-delay: 0.205s;
}
.loader-letter:nth-child(3) {
  animation-delay: 0.31s;
}
.loader-letter:nth-child(4) {
  animation-delay: 0.415s;
}
.loader-letter:nth-child(5) {
  animation-delay: 0.521s;
}
.loader-letter:nth-child(6) {
  animation-delay: 0.626s;
}
.loader-letter:nth-child(7) {
  animation-delay: 0.731s;
}
.loader-letter:nth-child(8) {
  animation-delay: 0.837s;
}
.loader-letter:nth-child(9) {
  animation-delay: 0.942s;
}
.loader-letter:nth-child(10) {
  animation-delay: 1.047s;
}
.loader-letter:nth-child(11) {
  animation-delay: 1.152s;
}
.loader-letter:nth-child(12) {
  animation-delay: 1.257s;
}
.loader-letter:nth-child(13) {
  animation-delay: 1.362s;
}
.loader-letter:nth-child(14) {
  animation-delay: 1.467s;
}
.loader-letter:nth-child(15) {
  animation-delay: 1.572s;
}
.loader-letter:nth-child(16) {
  animation-delay: 1.677s;
}
.loader-letter:nth-child(17) {
  animation-delay: 1.782s;
}
.loader-letter:nth-child(18) {
  animation-delay: 1.887s;
}
.loader-letter:nth-child(19) {
  animation-delay: 1.992s;
}
.loader-letter:nth-child(20) {
  animation-delay: 2.097s;
}
.loader-letter:nth-child(21) {
  animation-delay: 2.202s;
}
.loader-letter:nth-child(22) {
  animation-delay: 2.307s;
}
.loader-letter:nth-child(23) {
  animation-delay: 2.412s;
}

@keyframes loader-letter-anim {
  0% {
    opacity: 0;
  }
  5% {
    opacity: 1;
    text-shadow: 0 0 4px #fff;
    transform: scale(1.1) translateY(-2px);
  }
  20% {
    opacity: 0.2;
  }
  100% {
    opacity: 0;
  }
}

.social-links {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.social-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.social-icon {
  font-size: 18px;
  line-height: 30px;
}

.social-label {
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.hero-title {
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.3;
}

.hero-description {
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
}

/* Geometric Elements */
.geometric-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
}

.dot-pair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100px;
}

.dot {
  background-color: #1886bd;
  border-radius: 1px;
  width: 5px;
  height: 5px;
}

.dot-single {
  display: none;
}

.dot-single:first-child {
  display: block;
}

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

.square {
  background-color: #1886bd;
}

.square-1 {
  width: 8px;
  height: 8px;
  transform: rotate(-75deg);
}

.square-1 .square {
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
}

.square-2 {
  width: 15px;
  height: 15px;
  transform: rotate(-60deg);
}

.square-2 .square {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.square-3 {
  width: 30px;
  height: 30px;
  transform: rotate(-45deg);
}

.square-3 .square {
  width: 22px;
  height: 22px;
  border-radius: 3px;
}

.square-4 {
  width: 45px;
  height: 45px;
  transform: rotate(-30deg);
}

.square-4 .square {
  width: 35px;
  height: 35px;
  border-radius: 4px;
}

.logo-svg {
  height: 60px;
  width: 84px;
  flex-shrink: 0;
}

/* Projects Section */
.projects-section {
  background-color: #242734;
  width: 100%;
}

.projects-container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
  padding: 45px 16px 45px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-title {
  font-weight: 400;
  font-size: 32px;
  line-height: 45px;
  color: white;
  width: 100%;
  margin-bottom: 60px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  margin-bottom: 24px;
  align-items: stretch;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  border: 1px solid #424657;
  overflow: hidden;
  height: 100%;
}

.project-card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.project-card-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.project-image {
  height: 200px;
  position: relative;
  box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.15);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-content {
  background-color: #424657;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
}

.project-title {
  font-weight: 400;
  font-size: 22px;
  line-height: 35px;
  color: white;
}

.project-description {
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
  color: white;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background-color: #242734;
  padding: 2px 10px;
  border-radius: 25px;
}

.tag-text {
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
  color: white;
}

.read-more {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  color: white;
  margin-top: auto;
}

.read-more-text {
  font-weight: 700;
  font-size: 16px;
  line-height: 30px;
}

.arrow {
  font-size: 18px;
  line-height: 30px;
  width: 16px;
}

.see-all {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  color: #fac942;
}

/* Skills Section */
.skills-section {
  background-color: #323647;
  width: 100%;
}

.skills-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 45px 16px 45px;
  max-width: 1400px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.skill-card {
  background-color: #424657;
  padding: 24px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.skill-icon {
  font-size: 18px;
  line-height: 1;
  text-align: center;
  color: #1886BD;
}

.skill-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 30px;
  color: white;
  text-align: center;
}

.skill-description {
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
  color: white;
}

/* About Section */
.about-section {
  background-color: #242734;
  width: 100%;
}

.about-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 32px 16px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.about-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-heading {
  font-weight: 700;
  font-size: 22px;
  line-height: 35px;
  color: white;
}

.about-text {
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
  color: white;
}

.about-link {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fac942;
  margin-top: 16px;
  justify-self: end;
}

/* Footer */
.footer {
  background-color: #000;
  width: 100%;
  border-top: 1px solid #fff;
}

.footer .container {
  padding-top: 15px;
  padding-bottom: 15px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.footer-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.footer-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  transition: opacity 0.2s;
  color: #fff;
  text-decoration: none;
}

.footer-link:hover {
  opacity: 0.8;
}

.footer-link-icon {
  font-size: 24px;
  line-height: 30px;
  color: #fff;
}

.footer-link-text {
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
  color: #fff;
}

.footer-copyright {
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
  color: #fff;
  text-align: center;
}

@media (min-width: 800px) {
  .footer-links {
    gap: 60px;
  }
}

/* Desktop Breakpoint (801px+) */
@media (min-width: 801px) {
  .header-container {
    padding: 0 20px;
  }

  .desktop-nav {
    display: flex;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-content {
    padding: 60px 20px 0;
  }

  .hero-main {
    flex-direction: row;
    gap: 30px;
  }

  .hero-left {
    width: 422px;
  }

  .hero-name h1 {
    font-size: 48px;
    line-height: 48px;
  }

  .hero-right {
    width: 530px;
  }

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

  .square-1 {
    width: 15.309px;
    height: 15.309px;
    transform: rotate(-75deg);
  }

  .square-1 .square {
    width: 12.5px;
    height: 12.5px;
    border-radius: 3px;
  }

  .square-2 {
    width: 34.151px;
    height: 34.151px;
    transform: rotate(-60deg);
  }

  .square-2 .square {
    width: 25px;
    height: 25px;
    border-radius: 5px;
  }

  .square-3 {
    width: 70.711px;
    height: 70.711px;
    transform: rotate(-45deg);
  }

  .square-3 .square {
    width: 50px;
    height: 50px;
    border-radius: 6px;
  }

  .square-4 {
    width: 102.452px;
    height: 102.452px;
    transform: rotate(-30deg);
  }

  .square-4 .square {
    width: 75px;
    height: 75px;
    border-radius: 7px;
  }

  .logo-svg {
    height: 100px;
    width: 140px;
  }

  .projects-container {
    padding: 90px 20px;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 30px;
  }

  .skills-container {
    padding: 90px 20px;
  }

  .about-container {
    padding: 90px 20px;
  }

  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-link {
    grid-column: 1 / -1;
    justify-self: end;
  }

  .footer-container {
    padding: 15px 20px;
  }
}

/* Large Desktop Breakpoint (1024px+) */
@media (min-width: 1024px) {
  .header-container {
    padding: 0 20px;
  }

  .hero-content {
    padding: 60px 120px 0;
  }

  .dot-single:nth-child(3),
  .dot-single:nth-child(4) {
    display: block;
  }

  .hero-name h1 {
    font-size: 75px;
    line-height: 75px;
  }

  .projects-container {
    padding: 90px 120px;
  }

  .skills-container {
    padding: 90px 120px;
  }

  .about-container {
    padding: 90px 120px;
  }

  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-container {
    padding: 15px 120px;
  }
}
