

/* Font Face Declaration */
@font-face {
  font-family: "Clash Display";
  src: url("ClashDisplay-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --text-color: #212529;
  --bg-color: #ffffff;
  --border-blue: #229cff;
  --font-primary: "Clash Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --gradient-start: #0a2e3a;
  --gradient-mid: #4a1a4a;
  --gradient-end: #1a3a5a;
  --menu-bg: #f7f7f7;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  min-height: 100vh;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.app-container.loaded {
  opacity: 1;
}

/* Loader Styles */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  text-align: center;
}

.loader-percentage {
  font-size: 5rem;
  font-weight: 700;
  color: rgba(9, 66, 209, 1);
  font-family: var(--font-primary);
  transition: transform 0.1s ease;
}

/* Content Wrapper - Max Width 1920px, Centered */
.content-wrapper {
  max-width: 1920px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Styles */
.header {
  position: relative;
  width: 100%;
  height: 808px;
  overflow: hidden;
}

.header-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0 0 80px 80px;
}

.header-content {
  position: fixed;
  top: 30px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  max-width: 972px;
  margin: 0 auto;
  background-color: rgba(5, 5, 5, 0.4);
  height: 68px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.header-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #0942d1;
  display: flex;
  gap: 10px;
}

.header-text-title {
  font-size: 70px;
  font-weight: 700;
  letter-spacing: 0;
  color: #0942d1;
}

.header-text-subtitle {
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  max-width: 630px;
  letter-spacing: 0;
  line-height: 100%;
  color: #0942d1;
}

.logo-image {
  width: 120px;
  position: absolute;
  bottom: 5%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.logo {
  font-size: 30px;
  font-weight: 700;
  color: white;
  text-transform: lowercase;
  letter-spacing: -0.5px;
  cursor: pointer;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 25px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.5;
}

.nav-button {
  background-color: rgba(34, 156, 255, 0.3);
  border: 3px solid rgba(34, 156, 255, 1);
  border-radius: 40px;
  padding: 0.4rem;
  color: rgba(255, 255, 255, 1);
  transition: all 0.3s ease;
  font-size: 20px;
  font-weight: 600;
  width: 166px;
  text-align: center;
  transition: background-color 0.7s ease, color 0.7s ease;
}

.nav-button:hover {
  background-color: rgba(34, 156, 255, 1);
  opacity: 1;
}

/* Burger Menu */
.burger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  z-index: 10;
}

.burger-menu span {
  width: 25px;
  height: 2px;
  background-color: #0942d1;
  transition: all 0.3s ease;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 4rem 2rem;
  width: 100%;
  background-color: white;
}

.main-p-plus-content {
  flex: 1;
  padding: 8rem 2rem 3rem;
  width: 100%;
  background-color: white;
}

.projects-section {
  margin-top: 2rem;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.25);
  margin-bottom: 1rem;
  padding-left: 10%;
}

/* Projects Container */
.projects-container {
  background: linear-gradient(
    180deg,
    rgba(217, 217, 217, 1) 0%,
    rgba(217, 217, 217, 0.8) 50%,
    rgba(115, 115, 115, 0) 100%
  );

  box-shadow: none;
  border-radius: 40px;
  padding: 5rem;
  max-width: 1822px;
  margin: 0 auto;
  overflow: hidden;
  max-height: calc((336px + 88px) + 4rem + ((336px + 88px) / 2) + 10rem);
  transition: max-height 0.5s ease, box-shadow 0.5s ease;
  position: relative;
}

/* Fade-out overlay na dnu - svijetli efekt */
.projects-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 20%,
    rgba(255, 255, 255, 0.75) 50%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
  border-radius: 0 0 40px 40px;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 4rem;
  column-gap: 10rem;
  transition: all 0.5s ease;
}

.project-card {
  border-radius: 32px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.5s ease,
    visibility 0.5s ease;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-card-hidden {
  opacity: 0;
  visibility: hidden;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  transform: translateY(-30px) scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease,
    max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), margin 0.6s ease,
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  grid-row: span 0;
}

.projects-grid.expanded .project-card-hidden {
  opacity: 1;
  visibility: visible;
  max-height: 1000px;
  margin-top: 0;
  margin-bottom: 0;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  grid-row: span 1;
}

/* Hover effect for hidden cards when expanded */
.projects-grid.expanded .project-card-hidden:hover {
  transform: translateY(-10px);
}

.projects-grid.expanded .project-card-hidden:hover .project-image img {
  filter: brightness(0.85);
}

.project-image {
  width: 100%;
  height: 336px;
  overflow: hidden;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.3s ease, brightness 0.3s ease;
}

.project-card:hover .project-image img {
  filter: brightness(0.85);
}

.project-image:empty::before {
  content: "Project Image";
  color: #999;
  font-size: 1rem;
}

.project-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
}

.project-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: #333;
}

.project-year {
  font-size: 1rem;
  font-weight: 400;
  color: #999;
}

.toggle-projects-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 0;
  border: 5px solid rgba(9, 66, 209, 1);
  border-radius: 40px;
  color: rgba(9, 66, 209, 1);
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.5s ease;
  font-family: var(--font-primary);
  width: 155px;
  height: 51px;
  background-color: transparent;
  position: relative;
  overflow: hidden;
}

.about-section {
  margin-bottom: 6rem;
}

.title-container {
  max-width: 1822px;
  margin: 0 auto;
}

.about-content {
  max-width: 1261px;
  margin: 0 auto;
  padding: 1rem 0 6rem;
}

.about-text {
  font-size: 24px;
  font-weight: 500;
  color: rgba(20, 20, 20, 1);
}

.about-image {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

.about-banner {
  width: 1280px;
  max-height: 324px;
  border-radius: 80px;
  position: relative;
}

.about-text-content {
  position: absolute;
  top: 10%;
  left: 10%;
  z-index: 2;
}

.about-text-title {
  color: rgba(255, 255, 255, 1);
  font-size: 40px;
  font-weight: 400;
}

.about-logo-image {
  width: 500px;
  position: absolute;
  bottom: -50%;
  left: 0;
  z-index: 2;
}

.about-projects-btn {
  border: 5px solid rgba(255, 255, 255, 1);
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.5s ease;
  font-family: var(--font-primary);
  background-color: transparent;
  position: absolute;
  bottom: 15%;
  right: 10%;
  z-index: 2;
  overflow: hidden;
  font-size: 20px;
  font-weight: 500;
  padding: 13px 32px;
  color: rgba(255, 255, 255, 1);
}
.zvjezdica {
  color: rgba(9, 66, 209, 1);
}

.p-plus-content {
  position: absolute;
  top: 50%;
  left: 60%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.p-plus-title {
  color: rgba(255, 255, 255, 1);
  font-size: 40px;
  font-weight: 500;
}

.p-plus-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 0 3rem;
}

.p-plus-text-title {
  font-size: 48px;
  font-weight: 700;
  color: rgba(9, 66, 209, 1);
  text-align: center;
  margin: 3rem 0;
}

.p-plus-text {
  font-size: 24px;
  font-weight: 500;
  color: rgba(0, 0, 0, 1);
  margin: 3rem 0;
}

.p-plus {
  color: rgba(9, 66, 209, 1);
}

.p-plus-last {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  justify-content: center;
}

.p-plus-last > p {
  color: rgba(9, 66, 209, 1);
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}

.logo-p-plus {
  width: 120px;
}

.p-plus-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid rgba(9, 66, 209, 1);
  border-radius: 40px;
  color: rgba(9, 66, 209, 1);
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.5s ease;
  font-family: var(--font-primary);
  background-color: transparent;
  position: relative;
  overflow: hidden;
  font-size: 20px;
  font-weight: 500;
  padding: 13px 32px;
}

/* Only desktops apply hover */
@media (hover: hover) and (pointer: fine) {
  .toggle-projects-btn:hover,
  .p-plus-btn:hover {
    background-color: rgba(9, 66, 209, 1);
    color: white;
  }
}

@media (hover: hover) and (pointer: fine) {
  .about-projects-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    color: rgba(9, 66, 209, 1);
  }
}

.btn-text-show,
.btn-text-hide {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.btn-text-hide {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(-10px);
}

.btn-text-show {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.projects-container:has(.projects-grid.expanded)
  ~ .toggle-projects-btn
  .btn-text-show {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(10px);
}

.projects-container:has(.projects-grid.expanded)
  ~ .toggle-projects-btn
  .btn-text-hide {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.projects-container:has(.projects-grid.expanded) {
  max-height: none;
  box-shadow: 0px 9px 7.7px rgba(0, 0, 0, 0.25);
}

/* Hide fade-out overlay when expanded */
.projects-container:has(.projects-grid.expanded)::after {
  opacity: 0;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  animation: fadeInMenu 0.3s ease forwards;
}

@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-menu {
  position: fixed;
  top: 54px;
  right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease, right 0.3s ease;
  z-index: 1001;
  line-height: 1;
  opacity: 0;
  transform: scale(0.8);
}

.close-menu > span {
  position: absolute;
  top: 25px;
  color: #0942d1;
}

@media (min-width: 972px) {
  .close-menu {
    right: calc((100vw - 972px) / 2 + 2rem);
  }
}

.mobile-menu-overlay.active .close-menu {
  opacity: 1;
  transform: scale(1);
  transition-delay: 0.2s;
}

.close-menu:hover {
  transform: scale(1.1);
}

.close-menu:hover {
  opacity: 0.7;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 400px;
}

.mobile-nav-link {
  color: #0942d1;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 400;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.mobile-menu-overlay.active .mobile-nav-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(1) {
  transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(2) {
  transition-delay: 0.2s;
}

.mobile-nav-link:hover {
  opacity: 0.7;
}

/* Footer Styles - Desktop */
.footer {
  background: rgba(9, 66, 209, 1);
  box-shadow: 0px -11px 22px 0px rgba(0, 0, 0, 0.25);
  padding: 0;
  position: relative;
  border-radius: 40px 40px 0 0;
}

.footer-container {
  max-width: 100%;
  padding: 3rem 2rem 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
}

.footer-heading {
  font-size: 40px;
  font-weight: 500;
  color: rgba(255, 255, 255, 1);
  line-height: 1;
  padding-bottom: 2rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact > a {
  color: rgba(255, 255, 255, 1);
  font-size: 20px;
  font-weight: 500;
}

.footer-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5px;
}

.footer-instagram {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  font-size: 20px;
}

.footer-instagram-link {
  color: rgba(255, 255, 255, 1);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.footer-bottom-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.footer-bottom-left > a {
  padding-right: 2rem;
  font-size: 16px;
  color: rgba(255, 255, 255, 1);
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom-left > span {
  font-size: 16px;
  color: rgba(255, 255, 255, 1);
  font-weight: 500;
}

.footer-bottom-left > img {
  width: 10px;
}

.footer-logo-container > img {
  max-width: 500px;
  height: 70px;
  position: relative;
  bottom: -7px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header {
    height: 400px;
  }

  .header-content {
    padding: 1rem 1.5rem;
    position: relative;
    background: none;
    border: none;
    justify-content: end;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .desktop-nav {
    display: none;
  }

  .burger-menu {
    display: flex;
    color: #0942d1;
  }

  .close-menu {
    top: 1rem;
    right: 1.5rem;
  }

  .logo {
    display: none;
  }

  .logo-image {
    width: 70px;
    bottom: -6%;
  }

  .nav-button {
    display: none;
  }

  .header-text {
    gap: 10px;
    width: 80%;
    color: #0942d1;
  }

  .header-text-title {
    font-size: 32px;
    color: #0942d1;
  }

  .header-text-subtitle {
    font-size: 20px;
    color: #0942d1;
  }

  .main-content {
    padding: 2rem 1.5rem;
  }

  .p-plus-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 5px;
    padding-left: 0;
  }

  .projects-container {
    padding: 1.5rem;
    /* Mobile: 2.5 rows with single column - 2 full cards (200px + ~60px) * 2 + 2 gaps (1.5rem * 2) + half card + padding (3rem) */
    max-height: calc(
      ((200px + 60px) * 2) + (1.5rem * 2) + ((200px + 60px) / 2) + 3rem
    );
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-image {
    height: 200px;
  }

  .project-info {
    padding: 1rem;
  }

  .project-title {
    font-size: 1rem;
  }

  .about-section {
    padding: 0 1.5rem 2rem;
    margin-bottom: 0;
  }

  .about-text {
    font-size: 16px;
  }

  .about-text-title {
    font-size: 20px;
  }

  .about-projects-btn {
    font-size: 16px;
    padding: 8px 18px;
    border-width: 2px;
  }

  .toggle-projects-btn {
    font-size: 16px;
    border-width: 2px;
    width: 125px;
    height: 40px;
  }

  /* Footer Styles - Mobile */
  .footer-container {
    padding: 2rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 0;
  }

  .footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
  }

  .footer-heading {
    font-size: 20px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    line-height: 1;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-contact > a {
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-weight: 500;
  }

  .footer-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5px;
  }

  .footer-instagram {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-size: 16px;
  }

  .footer-instagram-link {
    color: rgba(255, 255, 255, 1);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
  }

  .footer-bottom-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
  }

  .footer-bottom-left > a {
    padding-right: 2rem;
    font-size: 12px;
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
    text-decoration: none;
  }

  .footer-bottom-left > span {
    font-size: 12px;
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
  }

  .footer-bottom-left > img {
    width: 8px;
  }

  .footer-logo-container > img {
    max-width: 333px;
    height: 56px;
    position: relative;
    bottom: -7px;
  }

  .banner-image {
    border-radius: 0 0 38px 38px;
  }

  .loader-percentage {
    font-size: 3rem;
  }

  .p-plus-container {
    padding: 1rem 0 2rem;
  }

  .p-plus-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .main-p-plus-content {
    padding: 4rem 0 2rem;
  }

  .p-plus-text-title {
    font-size: 24px;
    margin: 1rem 0;
  }

  .p-plus-text {
    font-size: 16px;
    margin: 1rem 0;
  }

  .about-banner {
    height: 150px;
    width: 100%;
    border-radius: 40px;
  }

  .about-logo-image {
    width: 70px;
    bottom: -32%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .p-plus-last {
    gap: 1rem;
  }

  .p-plus-last > p {
    font-size: 16px;
  }

  .logo-p-plus {
    width: 80px;
  }

  .p-plus-btn {
    font-size: 16px;
    padding: 8px 18px;
    border-width: 2px;
  }
}

/* small mobile devices */
@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

  .loader-percentage {
    font-size: 2rem;
  }

  .p-plus-title {
    font-size: 18px;
  }
}

/* tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
  .about-banner {
    width: 100%;
    height: 100%;
  }

  .p-plus-text-title {
    font-size: 40px;
    margin: 1rem 0;
  }

  .p-plus-text {
    font-size: 18px;
    margin: 1rem 0;
  }

  .p-plus-title {
    font-size: 32px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .projects-container {
    /* Tablet: 1.5 rows with single column - first card (336px + ~88px) + gap (1.5rem) + half card + padding (10rem) */
    max-height: calc((336px + 88px) + 1.5rem + ((336px + 88px) / 2) + 10rem);
  }

  .header-text {
    gap: 2rem;
    width: 100%;
    color: #0942d1;
  }

  .header-text-title {
    font-size: 48px;
    color: #0942d1;
  }

  .header-text-subtitle {
    font-size: 24px;
    color: #0942d1;
  }

  .about-logo-image {
    width: 350px;
    bottom: -32%;
  }

  .p-plus-last {
    gap: 1.5rem;
  }

  .p-plus-last > p {
    font-size: 18px;
  }

  .p-plus-container {
    padding: 2rem 0 2.5rem;
  }

  .about-text {
    font-size: 18px;
  }

  .about-text-title {
    font-size: 32px;
  }

  .section-title {
    font-size: 40px;
    padding-left: 0;
  }

  .about-projects-btn,
  .toggle-projects-btn {
    font-size: 18px;
    padding: 12px 32px;
    border-width: 3px;
  }

  .footer-container {
    padding: 2rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
  }

  .footer-top {
    flex-direction: row;
    margin-bottom: 0;
    justify-content: space-between;
  }

  .footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
  }

  .footer-heading {
    font-size: 24px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    line-height: 1;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-contact > a {
    color: rgba(255, 255, 255, 1);
    font-size: 18px;
    font-weight: 500;
  }

  .footer-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5px;
  }

  .footer-instagram {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-size: 18px;
  }

  .footer-instagram-link {
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
  }

  .footer-bottom-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
  }

  .footer-bottom-left > a {
    padding-right: 2rem;
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
    text-decoration: none;
  }

  .footer-bottom-left > span {
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
  }

  .footer-bottom-left > img {
    width: 10px;
  }

  .footer-logo-container > img {
    max-width: 500px;
    height: 84px;
    position: relative;
    bottom: -7px;
  }

  .main-p-plus-content {
    padding: 6rem 0 2rem;
  }

  .about-section {
    padding: 0 2.5rem 2rem;
    margin-bottom: 0;
  }

  .p-plus-btn {
    font-size: 18px;
    padding: 12px 32px;
    border-width: 3px;
  }

  .logo-p-plus {
    width: 100px;
  }
}

/* bigger tablet/ desktop devices */
@media (min-width: 1025px) and (max-width: 1272px) {
  .about-banner {
    width: 100%;
    height: 100%;
  }

  .about-text {
    font-size: 24px;
  }

  .header-text-title {
    font-size: 50px;
    color: #0942d1;
  }

  .header-text-subtitle {
    font-size: 32px;
    color: #0942d1;
  }

  .section-title {
    font-size: 46px;
    padding-left: 0;
  }

  .about-text-title {
    font-size: 32px;
  }

  .about-projects-btn,
  .toggle-projects-btn {
    font-size: 20px;
    padding: 12px 32px;
    border-width: 4px;
  }

  .footer-container {
    padding: 3rem 3rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }

  .footer-top {
    flex-direction: row;
    margin-bottom: 0;
    justify-content: space-between;
  }

  .footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.5rem;
  }

  .footer-heading {
    font-size: 24px;
    font-weight: 500;
    color: rgba(255, 255, 255, 1);
    line-height: 1;
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-contact > a {
    color: rgba(255, 255, 255, 1);
    font-size: 18px;
    font-weight: 500;
  }

  .footer-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5px;
  }

  .footer-instagram {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-size: 18px;
  }

  .footer-instagram-link {
    color: rgba(255, 255, 255, 1);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 1rem;
  }

  .footer-bottom-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
  }

  .footer-bottom-left > a {
    padding-right: 2rem;
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    font-weight: 700;
    text-decoration: none;
  }

  .footer-bottom-left > span {
    font-size: 16px;
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
  }

  .footer-bottom-left > img {
    width: 10px;
  }

  .footer-logo-container > img {
    max-width: 500px;
    height: 84px;
    position: relative;
    bottom: -7px;
  }

  .p-plus-text {
    font-size: 24px;
    margin: 2rem 0;
  }

  .p-plus-text-title {
    font-size: 46px;
    margin: 3rem 0;
  }

  .main-p-plus-content {
    padding: 8rem 0 2rem;
  }

  .about-section {
    padding: 0 3rem 3rem;
    margin-bottom: 0;
  }

  .p-plus-last {
    gap: 2.5rem;
  }

  .p-plus-last > p {
    font-size: 24px;
  }

  .p-plus-btn {
    font-size: 24px;
    padding: 12px 32px;
    border-width: 4px;
  }
}
