* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    touch-action: none;
}

body {
    font-family: Arial, sans-serif;
    background: #ccc;
    margin: 0;
    height: 100%;
}

/* Header container */
.header-container {
    background: black;
    padding: 20px;
    border-radius: 30px;
    width: 100%;
    max-width: 2000px;
    height: auto;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    transform-origin: center center;
    margin: 0 auto;
}

.whitebox-header-content {
    background: white;
    padding: 10px;
    border-radius: 40px;
    height: 550px;
    position: relative;
}

/* Custom cutout shape */
.shape-header {
    --radius: 40px;
    --color: #000;
    --mask: radial-gradient(var(--radius) at 0 0, #0000 100%, #000 calc(100% + 1px));

    background-color: var(--color);
    border-radius: var(--radius) 0;
    position: absolute;
    z-index: 1;

    color: white;
    width: 25vw; 
    aspect-ratio: 3/1;
    max-width: 250px; 
    max-height: 200px; 
}

.shape-header:nth-child(1) {
    right: 0;
    bottom: 0;
}

.shape-header:nth-child(2) {
    right: 0;
    top: 0;
    transform: scale(1, -1);
}

.shape-header:nth-child(3) {
    left: 0;
    top: 0;
    transform: scale(-1, -1);
}

.shape-header::before,
.shape-header::after {
    content: "";
    position: absolute;
    width: var(--radius);
    aspect-ratio: 1;
    background-color: var(--color);
    mask-image: var(--mask);
    -webkit-mask-image: var(--mask);
    z-index: 0;
}

.shape-header::before {
    top: calc(var(--radius) * -1);
    right: 0;
}

.shape-header::after {
    bottom: 0;
    left: calc(var(--radius) * -1);
}

.header-logo {
    position: absolute;
    top: 10px;
    left: 60px;
    z-index: 20;
}

.header-logo img {
    width: 150px; 
    height: auto;
    display: block;
}

.nav {
    position: absolute;
    top: 2px;
    right: 50px;
    z-index: 20;
}

.menu {
    display: flex;
    justify-content: center;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 5px 20px;
    border-radius: 25px;
    border: 2px solid black;
    gap: 40px;
}

.menu-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    color: #000;
    font: inherit;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .menu-button:hover {
    background-color: #f0f0f0;
  }
  

.portfolio-info {
    display: flex;
    flex-direction: column;
    max-width: 60%;
    padding-left: 40px;
    margin-top: 100px;
}

.portfolio-title {
    font-size: 28px;
    font-weight: bold;
}

.portfolio-text {
    margin-top: 10px;
    font-size: 16px;
    max-width: 400px;
}

.liquid-blob {
  position: absolute;
  top: 28%;
  left: 62%;
  width: 200px;
  height: 200px;
  --blob-gradient: radial-gradient(circle at 35% 35%, #e0f2ff 0%, #7ecbff 40%, #1a7eea 70%, #0a3d91 100%);
  background: var(--blob-gradient);
  border-radius: 60% 40% 70% 50% / 50% 70% 40% 60%;
  animation: floatBlob 14s ease-in-out infinite, blobColor 24s linear infinite;
  filter: drop-shadow(0 0 18px #0f766e80);
  z-index: 1;
  pointer-events: none;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
    border-radius: 60% 40% 70% 50% / 50% 70% 40% 60%;
  }
  15% {
    transform: translate(-25px, 18px) scale(1.18, 1.08);
    border-radius: 65% 55% 60% 70% / 60% 65% 55% 70%;
  }
  30% {
    transform: translate(20px, -22px) scale(1.12, 0.92);
    border-radius: 70% 60% 55% 80% / 80% 55% 60% 65%;
  }
  45% {
    transform: translate(-18px, 10px) scale(1.06, 1.22);
    border-radius: 80% 60% 70% 60% / 60% 80% 60% 70%;
  }
  60% {
    transform: translate(15px, -18px) scale(1.1, 0.95);
    border-radius: 75% 80% 60% 65% / 65% 60% 80% 75%;
  }
  75% {
    transform: translate(-10px, 15px) scale(1.13, 1.05);
    border-radius: 70% 65% 80% 60% / 60% 70% 65% 80%;
  }
  90% {
    transform: translate(8px, -12px) scale(1.09, 0.97);
    border-radius: 60% 70% 65% 80% / 80% 60% 70% 65%;
  }
  100% {
    transform: translate(0, 0) scale(1);
    border-radius: 60% 40% 70% 50% / 50% 70% 40% 60%;
  }
}

@keyframes blobColor {
  0% {
    filter: hue-rotate(0deg) brightness(1.05) saturate(1.1);
  }
  20% {
    filter: hue-rotate(-10deg) brightness(1.1) saturate(1.2);
  }
  40% {
    filter: hue-rotate(10deg) brightness(1.05) saturate(1.1);
  }
  60% {
    filter: hue-rotate(-20deg) brightness(1.1) saturate(1.2);
  }
  80% {
    filter: hue-rotate(20deg) brightness(1.05) saturate(1.1);
  }
  100% {
    filter: hue-rotate(0deg) brightness(1.05) saturate(1.1);
  }
}

/* Styling outcomecontainer */
.outcomecontainer {
    background: white;
    border-radius: 30px;
    width: 100%;
    max-width: 2000px;
    min-height: 800px;  
    position: relative;
    transform: scale(0.9);
    transform-origin: center center;
    margin: 0 auto;
    padding: 20px;
    overflow: hidden; 
    height: 600px; 
    clip-path: inset(0); 
}

.vertical-carousel-manual {
    position: relative;
    margin-top: 80px;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
    transform: translateY(0);
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    position: relative; 
    width: 100%;
    height: 270px; 
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease-in-out;
    flex-shrink: 0; 
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.carousel-item:hover,
.carousel-item.active {
    opacity: 1;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
    transform: none;  
}

.carousel-item.visible {
    opacity: 1; 
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.carousel-item.semi-visible {
    opacity: 0.4;
    visibility: visible;
    transform: translateY(0);
    filter: grayscale(30%);
    pointer-events: auto;
}

.carousel-item.inactive {
    opacity: 0; 
    visibility: hidden;
    pointer-events: none;
}

.carousel-item .carousel-box {
    width: 500px;
    height: 270px; 
    background-color: rgb(217, 217, 217);
    position: absolute;
    right: 200px;
    top: 0;
    border-radius: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item .carousel-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50px;
    display: block;
}

.carousel-item .carousel-text {
    position: relative;
    left: 200px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 20px;
    font-size: 1.2em;
    width: 100%;
    max-width: 400px;
}

/* styling  number popup */
.number-popups-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  background: white;
  border-radius: 30px;
  width: 100%;
  max-width: 2000px;
  height: 700px;
  position: relative;
  transform: scale(0.9);
  transform-origin: center center;
  margin: 0 auto;
  padding: 20px;
  padding-top: 100px;
  overflow: hidden;
  clip-path: inset(0);
}

.popup-box {
  width: 100px; 
  height: 50px;
  color: black;
  font-size: 4em;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.8s ease-out;
  overflow: hidden;
  padding-top: 0px;
}

.popup-box.visible {
  transform: translateY(0);
  opacity: 1;
}

.number-scroll {
    display: flex;
    flex-direction: column;
    transition: transform 5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 50px;
}

.number-scroll span {
    height: 50px;
    line-height: 50px;
    flex-shrink: 0;
}

.counter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.counter-group:hover {
    transform: translateY(-5px);
}

.vertical-box {
    width: 150px;
    background-color: rgb(217, 217, 217);
    transition: all 0.5s ease-in-out;
    opacity: 0;
    border-radius: 8px;
    padding: 15px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
}

.vertical-box.show {
    height: 400px;
    opacity: 1;
}


/* Footer styling */
.site-footer {
    background-color: #000000;
    color: #fff;
    padding: 40px 20px;
    margin-top: 100px;
    width: 100%;
    max-width: 2000px;
    margin: 0px auto 0;
    border-radius: 30px;
    transform: scale(0.9);
    transform-origin: center center;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 100%;
    padding: 0 40px;
    gap: 40px;
}

.footer-map {
    flex: 0 0 auto;
}

.footer-links {
    flex: 1 1 auto;
    min-width: 200px;
    margin-top: 20px;
}

.footer-links h4 {
    font-size: 25px;
    margin-bottom: 10px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin: 10px 0;
}

.footer-links ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #ffffffb3;
}

.down-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-15px);
    }
}



@media (max-width: 1024px) {
    .carousel-item {
        grid-template-columns: 1fr;
        height: auto;
    }
    .carousel-item .carousel-box {
        width: 90%;
        right: auto;
        margin: 0 auto;
        position: relative;
    }
    .carousel-item .carousel-text {
        left: 0;
        max-width: 100%;
        padding: 10px;
        font-size: 1em;
        text-align: center;
    }

    .number-popups-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-top: 50px;
        height: auto;
    }

    .counter-group {
        width: 100%;
        max-width: 300px;
    }

    .popup-box {
        width: 70px;
        height: 40px;
        font-size: 2.5em;
    }

    .vertical-box {
        width: 120px;
        font-size: 12px;
    }

    .vertical-box.show {
        height: 200px;
    }

    .header-container {
        min-height: auto;
        padding: 10px;
        transform: scale(1);
    }

    .whitebox-header-content {
        height: auto;
        min-height: 600px;
        padding: 20px;
    }

    .header-logo {
        position: relative;
        top: 0;
        left: 0;
        text-align: center;
        margin-bottom: 20px;
    }

    .header-logo img {
        width: 100px;
        margin: 0 auto;
    }

    .menu {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin: 20px 0;
    }

    .menu-button {
        width: 100%;
        text-align: center;
    }

    .portfolio-info {
        max-width: 100%;
        padding: 20px 0;
        margin-top: 30px;
        text-align: center;
    }

    .shape-header {
        display: none;
    }

    .animation-box {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 90%;
        max-width: 280px;
        margin: 20px auto;
    }

    .site-footer {
        transform: scale(1);
        padding: 20px 10px;
        margin-top: 50px;
        border-radius: 20px;
    }

    .footer-content {
        padding: 0 20px;
        gap: 20px;
        flex-direction: column;
    }

    .footer-links {
        margin-top: 10px;
    }

    .footer-links h4 {
        font-size: 20px;
    }

    .footer-map {
        width: 100%;
    }

    .footer-map iframe {
        width: 100%;
        height: 200px;
    }

    .liquid-blob {
    display: none;
  }
}

@media (max-width: 768px) {
    .carousel-item {
        grid-template-columns: 1fr;
        height: auto;
    }
    .carousel-item .carousel-box {
        width: 90%;
        right: auto;
        margin: 0 auto;
        position: relative;
    }
    .carousel-item .carousel-text {
        left: 0;
        max-width: 100%;
        padding: 10px;
        font-size: 1em;
        text-align: center;
    }

    .number-popups-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-top: 50px;
        height: auto;
    }

    .counter-group {
        width: 100%;
        max-width: 300px;
    }

    .popup-box {
        width: 70px;
        height: 40px;
        font-size: 2.5em;
    }

    .vertical-box {
        width: 120px;
        font-size: 12px;
    }

    .vertical-box.show {
        height: 200px;
    }

    .header-container {
        min-height: auto;
        padding: 10px;
        transform: scale(1);
    }

    .whitebox-header-content {
        height: auto;
        min-height: 600px;
        padding: 20px;
    }

    .header-logo {
        position: relative;
        top: 0;
        left: 0;
        text-align: center;
        margin-bottom: 20px;
    }

    .header-logo img {
        width: 100px;
        margin: 0 auto;
    }

    .menu {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        flex-direction: column;
        width: 100%;
        gap: 10px;
        margin: 20px 0;
    }

    .menu-button {
        width: 100%;
        text-align: center;
    }

    .portfolio-info {
        max-width: 100%;
        padding: 20px 0;
        margin-top: 30px;
        text-align: center;
    }

    .shape-header {
        display: none;
    }

    .animation-box {
        position: relative;
        top: 0;
        right: 0;
        transform: none;
        width: 90%;
        max-width: 280px;
        margin: 20px auto;
    }

    .site-footer {
        transform: scale(1);
        padding: 20px 10px;
        margin-top: 50px;
        border-radius: 20px;
    }

    .footer-content {
        padding: 0 20px;
        gap: 20px;
        flex-direction: column;
    }

    .footer-links {
        margin-top: 10px;
    }

    .footer-links h4 {
        font-size: 20px;
    }

    .footer-map {
        width: 100%;
    }

    .footer-map iframe {
        width: 100%;
        height: 200px;
    }

    .liquid-blob {
    display: none;
  }
}

@media screen and (max-width: 480px) {
    .popup-box {
        width: 60px;
        height: 35px;
        font-size: 2em;
    }

    .vertical-box {
        width: 100px;
    }

    .portfolio-title {
        font-size: 24px;
    }

    .portfolio-text {
        font-size: 14px;
        padding: 0 15px;
    }

    .whitebox-header-content {
        border-radius: 20px;
    }

    .site-footer {
        padding: 15px 5px;
    }

    .footer-content {
        padding: 0 10px;
    }

    .footer-links h4 {
        font-size: 18px;
    }

    .footer-links ul li {
        margin: 5px 0;
        font-size: 14px;
    }

    .liquid-blob {
    display: none;
  }
}
