/* ////////////////////////////////////////

Your custom css here

/////////////////////////////////////////*/

/* Navbar scroll shadow */
.navbar-scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

/* Project intro titles */
.project-intro-title {
    font-weight: bold;
    color: #42427f;
}

/* Interactive Gradient Variables */
:root {
    --color1: 220, 235, 255;
    --color2: 235, 225, 255;
    --color3: 230, 230, 255;
    --color4: 210, 240, 250;
    --color5: 225, 215, 235;
    --color-interactive: 240, 230, 255;
    --circle-size: 80%;
    --blending: soft-light;
}

/* Project intro glassmorphism with transparent background */
.project-intro {
    position: relative;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 90px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 10;
    background: transparent;
}

.project-intro::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 34%, rgba(255,255,255,1) 89%, rgba(255,255,255,0) 100%);
    opacity: 0.3;
    filter: blur(.5px);
    mix-blend-mode: hard-light;
}

.project-intro .noise {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    opacity: 0.1;
}

.project-intro > * {
    position: relative;
    z-index: 5;
}

/* Gradient Background */
.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(40deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3));
}

.gradient-bg .svgBlur {
    display: none;
}

.gradient-bg .noiseBg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    mix-blend-mode: soft-light;
    opacity: 0.3;
}

.gradients-container {
    filter: blur(40px);
    width: 100%;
    height: 100%;
}

.g1 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: center center;
    animation: moveVertical 30s ease infinite;
    opacity: 1;
}

.g2 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 20s reverse infinite;
    opacity: 1;
}

.g3 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2 + 200px);
    left: calc(50% - var(--circle-size) / 2 - 500px);
    transform-origin: calc(50% + 400px);
    animation: moveInCircle 40s linear infinite;
    opacity: 1;
}

.g4 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(50% - var(--circle-size) / 2);
    left: calc(50% - var(--circle-size) / 2);
    transform-origin: calc(50% - 200px);
    animation: moveHorizontal 40s ease infinite;
    opacity: 0.7;
}

.g5 {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: calc(var(--circle-size) * 2);
    height: calc(var(--circle-size) * 2);
    top: calc(50% - var(--circle-size));
    left: calc(50% - var(--circle-size));
    transform-origin: calc(50% - 800px) calc(50% + 200px);
    animation: moveInCircle 20s ease infinite;
    opacity: 1;
}

.interactive {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    margin-top: -100px;
    margin-left: -100px;
    opacity: 0.7;
    pointer-events: none;
    transition: none;
}

@keyframes moveInCircle {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(180deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes moveVertical {
    0% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(50%);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes moveHorizontal {
    0% {
        transform: translateX(-50%) translateY(-10%);
    }
    50% {
        transform: translateX(50%) translateY(10%);
    }
    100% {
        transform: translateX(-50%) translateY(-10%);
    }
}

/* Footer Gradient Background */
.footer {
    position: relative;
    overflow: hidden;
}

.footer .noise-footer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    opacity: 0.1;
}

.footer .container {
    position: relative;
    z-index: 5;
}

.gradient-bg-footer {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(40deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.3));
}

.gradient-bg-footer .svgBlurFooter {
    display: none;
}

.gradient-bg-footer .noiseBgFooter {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    z-index: 1;
    mix-blend-mode: soft-light;
    opacity: 0.3;
}

.gradients-container-footer {
    filter: blur(40px);
    width: 100%;
    height: 100%;
}

.g1-footer {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(60% - var(--circle-size) / 2);
    right: calc(20% - var(--circle-size) / 2);
    transform-origin: center center;
    animation: moveVertical 30s ease infinite;
    opacity: 1;
}

.g2-footer {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(60% - var(--circle-size) / 2);
    right: calc(20% - var(--circle-size) / 2);
    transform-origin: calc(50% + 400px);
    animation: moveInCircle 20s reverse infinite;
    opacity: 1;
}

.g3-footer {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(60% - var(--circle-size) / 2 + 200px);
    right: calc(20% - var(--circle-size) / 2 - 200px);
    transform-origin: calc(50% - 400px);
    animation: moveInCircle 40s linear infinite;
    opacity: 1;
}

.g4-footer {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: var(--circle-size);
    height: var(--circle-size);
    top: calc(60% - var(--circle-size) / 2);
    right: calc(20% - var(--circle-size) / 2);
    transform-origin: calc(50% + 200px);
    animation: moveHorizontal 40s ease infinite;
    opacity: 0.7;
}

.g5-footer {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: calc(var(--circle-size) * 2);
    height: calc(var(--circle-size) * 2);
    top: calc(60% - var(--circle-size));
    right: calc(20% - var(--circle-size));
    transform-origin: calc(50% + 800px) calc(50% + 200px);
    animation: moveInCircle 20s ease infinite;
    opacity: 1;
}

.interactive-footer {
    position: absolute;
    background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat;
    mix-blend-mode: var(--blending);
    width: 200px;
    height: 200px;
    top: 60%;
    right: 20%;
    margin-top: -100px;
    margin-right: -100px;
    opacity: 0.7;
    pointer-events: none;
    transition: none;
}



/* Navigation link spacing */
.navbar-nav .nav-item {
    margin-right: 2rem;
}

.navbar-nav .nav-item:last-child {
    margin-right: 0;
}

/* Navigation micro animations */
.navbar-light .navbar-nav .nav-link {
    position: relative;
    transition: all 0.2s ease;
    color: #271ad0;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #150e7a;
}

.navbar-light .navbar-nav .nav-link:active {
    transition: all 0.1s ease;
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #271ad0;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Badge/Chip Component */
.badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.5;
    color: #7c3aed;
    background-color: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

/* Badge Variations */
.badge.badge-primary {
    color: #5b21b6;
    background-color: rgba(91, 33, 182, 0.15);
    border-color: rgba(91, 33, 182, 0.3);
}

.badge.badge-success {
    color: #059669;
    background-color: rgba(5, 150, 105, 0.15);
    border-color: rgba(5, 150, 105, 0.3);
}

.badge.badge-warning {
    color: #ea580c;
    background-color: rgba(234, 88, 12, 0.15);
    border-color: rgba(234, 88, 12, 0.3);
}

.badge.badge-info {
    color: #0284c7;
    background-color: rgba(2, 132, 199, 0.15);
    border-color: rgba(2, 132, 199, 0.3);
}

.badge.badge-outline {
    color: #7c3aed;
    background-color: transparent;
    border-color: #7c3aed;
}

.badge.badge-filled {
    color: #ffffff;
    background-color: #7c3aed;
    border-color: #7c3aed;
}

.badge.badge-sm {
    padding: 0.375rem 1rem;
    font-size: 0.75rem;
}

.badge.badge-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Modern Responsive Layout Improvements */
@media (max-width: 991.98px) {
    .space-md {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .project-intro {
        padding: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .space-md {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .headline-title {
        font-size: 2.5rem !important;
    }
    
    .project-intro {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .project-intro-title {
        margin-bottom: 0.5rem;
    }
    
    .badge {
        margin-bottom: 1rem;
    }
}

/* Discovery Cards with Warning Semantic Visual */
.discovery-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.discovery-card-warning {
    background-color: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    line-height: 1.7;
    color: #78350f;
}

.discovery-card-warning strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #92400e;
    font-weight: 600;
}

/* Responsive Discovery Cards */
@media (max-width: 991.98px) {
    .discovery-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .discovery-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .discovery-card-warning {
        padding: 1rem 1.25rem;
        font-size: 0.9375rem;
    }
}

/* Improved Image Responsiveness */
img.img-fluid {
    width: 100%;
    height: auto;
    display: block;
}

/* Image fade to transparent on the right */
.image-fade-right {
    position: relative;
    overflow: hidden;
}

.image-fade-right img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

figure {
    margin-bottom: 2rem;
    width: 100%;
}

figure img.w-100 {
    width: 100%;
    max-width: 100%;
}

/* Full Width Hero Image */
.hero-fullwidth {
    width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.hero-fullwidth {
    position: relative;
}

.hero-fullwidth img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.hero-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* Better Section Spacing */
section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

section:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
}

footer {
    margin-top: 0 !important;
    padding-top: 4rem !important;
}

section.space-md:last-of-type {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

section.space-md.section-extra-bottom:last-of-type {
    padding-bottom: 6rem !important;
    margin-bottom: 0 !important;
}

#portfolio-section {
    padding-bottom: 6rem !important;
}

.section-extra-bottom {
    padding-bottom: 6rem !important;
}

@media (max-width: 991.98px) {
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    section:last-of-type {
        padding-bottom: 0;
    }
    
    #portfolio-section {
        padding-bottom: 4rem !important;
    }
}

@media (max-width: 767.98px) {
    section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    
    section:last-of-type {
        padding-bottom: 0;
    }
    
    #portfolio-section {
        padding-bottom: 3rem !important;
    }
}

/* Container Max Width Improvements */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Improved Typography Spacing */
p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

p:last-child {
    margin-bottom: 0;
}

/* Responsive Image Margins */
@media (max-width: 767.98px) {
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
}

/* Contact Form Button */
.contact .btn-primary {
    background-color: #271ad0;
    border-color: #271ad0;
    color: #ffffff;
}

.contact .btn-primary:hover,
.contact .btn-primary:focus {
    background-color: #150e7a;
    border-color: #150e7a;
    color: #ffffff;
}