/* Investo-style smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

/* Enhanced smooth scrolling for all elements */
* {
    scroll-behavior: smooth;
}

/* Body smooth scrolling */
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Custom scrollbar styling like Investo */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.4);
}

/* Smooth transitions for better UX */
* {
    transition: scroll-behavior 0.3s ease;
}

.hero-images {
    flex: 1;
    position: relative;
    height: 500px;
    width: 96%;
    perspective: 1000px;
    /* 3D depth for all child cards */
    background-image: url('http://10.255.254.64:8000/main_assets/img/backlogo.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 500px;
    width: 500px;
    position: relative;
    margin-left: 58px;
}

.image-box {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    cursor: pointer;
    aspect-ratio: 1/1;
}

/* Hover = tilt back */
.image-box:hover {
    transform: rotateX(12deg) rotateY(-10deg) scale(1.02);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
}

/* Click = tilt forward */
.image-box.active {
    transform: rotateX(-12deg) rotateY(10deg) scale(1.02);
    box-shadow: 0 -25px 45px rgba(0, 0, 0, 0.3);
}

.image-box video {
    width: 100%;
    height: 114%;
    margin-top: -17px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Optional subtle zoom effect on hover */
.image-box:hover video {
    transform: scale(1.05);
}

/* Unique corner shapes (same as your original) */
.image-box:nth-child(1) {
    border-top-left-radius: 96px;
    border-top: 3px solid ghostwhite;
    border-right: 3px solid ghostwhite;
    border-bottom: 3px solid ghostwhite;
    border-left: 3px solid ghostwhite;
}

.image-box:nth-child(2) {
    /* border-radius: 50%; */
    margin-top: -20px;
    border-top: 3px solid ghostwhite;
    border-right: 3px solid ghostwhite;
    border-bottom: 3px solid ghostwhite;
    border-left: 3px solid ghostwhite;
}

.image-box:nth-child(3) {
    border-bottom-left-radius: 96px;
    border-top: 3px solid ghostwhite;
    border-right: 3px solid ghostwhite;
    border-bottom: 3px solid ghostwhite;
    border-left: 3px solid ghostwhite;
}

.image-box:nth-child(4) {
    /* border-top-right-radius: 76px;
    border-bottom-right-radius: 76px;
    border-bottom-left-radius: 76px; */
    border-bottom-left-radius: 96px;
    margin-top: -20px;
    border-top: 3px solid ghostwhite;
    border-right: 3px solid ghostwhite;
    border-bottom: 3px solid ghostwhite;
    border-left: 3px solid rgb(255, 255, 255);

}

/* Optional soft shapes in background */
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.shape {
    position: absolute;
    /* background: linear-gradient(45deg, #8B5CF6, #EC4899); */
    opacity: 0.1;
    border-radius: 50%;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: 10%;
}

.shape-2 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 5%;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 20%;
}



