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

html {
  font-size: 16px;
}

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

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

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

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0 16px;
}

@media (min-width: 801px) {
  .container {
    padding: 0 20px;
  }
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  padding: 15px;
  font-size: 18px;
  line-height: 30px;
}

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

@media (min-width: 801px) {
  .header-nav {
    display: flex;
  }
}

.nav-item {
  padding: 15px;
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
  cursor: pointer;
  position: relative;
}

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

.mobile-menu-btn {
  display: flex;
  padding: 15px;
  font-size: 18px;
  position: relative;
}

.mobile-menu-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: #fac942;
}

@media (min-width: 801px) {
  .mobile-menu-btn {
    display: none;
  }
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
  justify-content: center;
  padding-top: 45px;
}

@media (min-width: 801px) {
  .hero-content {
    padding-top: 60px;
  }
}

.hero-title {
  font-weight: 700;
  font-size: 50px;
  line-height: 75px;
  width: 100%;
}

/* Animated Squares */
.squares-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  height: 75px;
}

@media (min-width: 801px) {
  .squares-container {
    height: auto;
  }
}

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

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

.square-rotated-inner {
  background-color: #1886bd;
  transform: rotate(-45deg);
}

.square-5 { width: 5px; height: 5px; border-radius: 1px; }
.square-12 { width: 12.5px; height: 12.5px; border-radius: 2px; }
.square-25 { width: 25px; height: 25px; border-radius: 5px; }
.square-50 { width: 50px; height: 50px; border-radius: 6px; }
.square-75 { width: 75px; height: 75px; border-radius: 7px; }
.square-100 { width: 100px; height: 100px; border-radius: 8px; }

.hero-svg-box {
  position: relative;
  width: 115px;
  height: 75px;
}

@media (min-width: 1024px) {
  .container {
    padding: 0 120px;
  }

  .hero-content {
    padding-top: 60px;
  }

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

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

  .dot-single {
    display: block;
  }

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

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

  .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;
    flex-shrink: 0;
  }

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

.hide-mobile { display: none; }
.hide-tablet { display: none; }
.show-mobile { display: flex; }

@media (min-width: 801px) {
  .hide-mobile { display: flex; }
  .show-mobile { display: none; }
}

@media (min-width: 1024px) {
  .hide-tablet { display: flex; }
}

/* Sections */
.section {
  width: 100%;
}

.section-highlighted {
  background-color: #242734;
  z-index: 3;
}

.section-other {
  background-color: #323647;
  z-index: 2;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-top: 45px;
  padding-bottom: 45px;
}

@media (min-width: 801px) {
  .section-content {
    padding-top: 60px;
    align-items: flex-end;
  }
}

@media (min-width: 801px) {
  .section-content {
    padding-top: 90px;
    padding-bottom: 90px;
  }
}

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

/* Project Cards */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.projects-row {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

@media (min-width: 801px) and (max-width: 1023px) {
  /* Show hide-tablet elements in tablet view */
  .hide-tablet {
    display: flex;
  }

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

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

  .dot-single {
    display: block;
  }

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

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

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

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

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

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

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

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

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

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

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

  .logo-svg {
    height: 80px;
    width: 112px;
    flex-shrink: 0;
  }

  /* Resize hero-svg-box in tablet view */
  .hero-svg-box {
    width: 135px;
    height: 100px;
  }

  /* Highlighted Projects - 2 columns */
  .section-highlighted .projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .section-highlighted .projects-row {
    display: contents;
  }

  .project-card {
    width: 100%;
  }

  /* Other Projects - 3 columns */
  .section-other .projects-grid,
  .other-projects-desktop .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .section-other .projects-row,
  .other-projects-desktop .projects-row {
    display: contents;
  }

  .section-other .small-project-card,
  .other-projects-desktop .small-project-card,
  .section-other .fixed-width-card,
  .other-projects-desktop .fixed-width-card {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .projects-row {
    flex-direction: row;
  }

  /* Create unified grid for Other Projects section */
  .section-other .projects-grid,
  .other-projects-desktop .projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .section-other .projects-row,
  .other-projects-desktop .projects-row {
    display: contents;
  }

  .section-other .small-project-card,
  .other-projects-desktop .small-project-card,
  .section-other .fixed-width-card,
  .other-projects-desktop .fixed-width-card {
    width: 100%;
    flex: none;
  }
}

.project-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  border: 1px solid #424657;
  overflow: hidden;
  min-width: 0;
}

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

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

.project-card-image {
  height: 150px;
  position: relative;
  overflow: hidden;
  background-color: #323647;
}

@media (min-width: 801px) {
  .project-card-image {
    height: 200px;
  }
}

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

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

@media (min-width: 801px) {
  .project-card-body {
    padding: 30px;
  }
}

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

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

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

.tag {
  background-color: #242734;
  padding: 2px 10px;
  border-radius: 25px;
  font-weight: 300;
  font-size: 16px;
  line-height: 30px;
}

.project-card-link {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
}

.project-card-link span {
  font-weight: 700;
  font-size: 16px;
  line-height: 30px;
}

.arrow {
  width: 16px;
  height: 16px;
}

/* Small Project Cards (Other Projects) */
.other-projects-desktop {
  display: none;
}

@media (min-width: 801px) {
  .other-projects-desktop {
    display: block;
  }
}

.other-projects-mobile {
  display: block;
}

@media (min-width: 801px) {
  .other-projects-mobile {
    display: none;
  }
}

.small-project-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  border: 1px solid #424657;
  overflow: hidden;
  min-width: 0;
}

.small-project-card-image {
  height: 150px;
  position: relative;
  overflow: hidden;
  background-color: #323647;
}

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

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

@media (min-width: 801px) {
  .small-project-card-body {
    padding: 15px 15px 30px 15px;
  }
}

.fixed-width-card {
  width: 100%;
}

@media (min-width: 1024px) {
  .fixed-width-card {
    width: 245px;
    flex: none;
  }
}

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

.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;
  text-decoration: none;
  color: #fff;
}

.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;
  }
}

/* Utility classes */
.rotate-75 { transform: rotate(-75deg); }
.rotate-60 { transform: rotate(-60deg); }
.rotate-45 { transform: rotate(-45deg); }
.rotate-30 { transform: rotate(-30deg); }
