@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

:root{

    --btn-color: #fdfdfd;/* button color*/
    --btn-bg: #0d0d0d;/* button bg color*/

    --primary-text-color: #000;
    --header-link-hover: #dddcdccf;
    --footer-link-hover: #6dbb00;
    --input-focus-bd-color: #0d0d0d;
}


html {
    scroll-behavior: smooth;
    font-family: "Roboto", sans-serif;
}

header{
    /* background-color: #fff;
    color: #000; */
}


header > .collapsible-header{
    display: flex;
    gap: 1rem;
    width: 100%;
    background-color: inherit;
    place-content: center;
    overflow: hidden;
    transition: width 0.3s ease;
}

.outline-effect {
    color: black;
    -webkit-text-fill-color: transparent; /* Will override color (regardless of order) */
    -webkit-text-stroke: 2px black;
}

.animated-collapse{
    transition: width 0.3s ease;
}

.header-links {
    display: flex;
    align-items: center;
    min-width: fit-content;
    border-radius: 25px;
    padding: 5px 15px;
    transition: background-color 0.5s, color 0.5s;
}


.header-links:hover {
    background-color: var(--header-link-hover);
}

.material-icons.md-40 { 
    font-size: 40px; 
}

.primary-text-color{
    color: var(--primary-text-color);
}

.opacity-0{
    opacity: 0 !important;
}

.opacity-100{
    opacity: 100 !important;
}

.btn{
    padding: 10px 15px;
    width: max-content;
    border-radius: 25px;
    color: var(--btn-color);
    background-color: var(--btn-bg);
    justify-content: center;
    align-items: center;
    display: flex;
    cursor: pointer;
}

.btn:hover{

}

.btn:disabled{
    cursor: default;
}

.input{
    padding: 10px;
    background-color: transparent;
    border-radius: 25px;
    /* outline: none; */
    min-width: 100px;
    border: 2px solid #818080;
    transition: border 0.3s;
}

.input:active, .input:focus, .input:focus-within{
    border: 2px solid var(--input-focus-bd-color);
}

.input-error{
    border-bottom: 3px solid #ff1e1e;
}

.input-error:focus-within{
    border-bottom: 3px solid #fd0101;
}


/* Navigation dots styling */
.dots-container {
    text-align: center;
    margin-top: 20px;
}

.footer-link{
    color: #0d0d0d;
    transition: color 0.3s;
}

.footer-link:hover{
    color: var(--footer-link-hover);
}


.review-container {
    position: relative;
    max-width: 600px;
    margin: auto;
}

.review-card{
    box-shadow: 0px 2px 4px #757474a0;
    border-radius: 15px;
    /* width: 200px; */
    /* height: 550px; */
    padding: 10px;
}

/* --------- collapsible div ---------- */
.collapsible {
    background-color: #f3f0f0;
    color: #2b2929;
    /* cursor: pointer; */
    padding: 5px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    transition: 0.4s;
}

/* Style for the collapsible content */
.content {
    padding: 0 18px;
    /* display: none; */
    height: 0px;
    overflow: hidden;
    background-color: transparent;
    transition: height 0.5s;
    text-align: justify;
    margin-top: 10px;
}

.collapsible .active,
.collapsible:hover {
    /* background-color: #dedddd; */
}

/* Remove margin-top for grid layout children to counter space-y-8 - Force override all margin-top */
div.work-grid-item,
div.work-grid-item[class],
a.work-grid-item,
a.work-grid-item[class],
div.project-grid-item,
div.project-grid-item[class],
a.project-grid-item,
a.project-grid-item[class] {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* Additional override for any element with work-grid-item class */
[class*="work-grid-item"],
[class*="project-grid-item"] {
    margin-top: 0 !important;
    margin-block-start: 0 !important;
}

/* 3D Shadow and Border Effects for Work and Project Cards */
.work-card-3d,
.project-card-3d {
    border: 2px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.2),
        0 10px 10px -5px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: box-shadow, transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
    position: relative; /* For z-index to work */
    /* Don't set initial transform - let GSAP handle Y transform, CSS will handle scale on hover */
}

.work-card-3d:hover,
.project-card-3d:hover {
    box-shadow: 
        0 25px 30px -5px rgba(0, 0, 0, 0.25),
        0 15px 15px -5px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    /* Scale up more noticeably and lift on hover */
    transform: translateY(-6px) scale(1.12) !important;
    transition: box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                border-color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    z-index: 10 !important; /* Bring to front on hover */
}

/* Add spacing between top and bottom rows in Work section */
@media (min-width: 1024px) {
    .work-grid-item:nth-child(3),
    .work-grid-item:nth-child(4) {
        margin-top: 3rem !important; /* 48px spacing between rows */
    }
}

/* Curved edges for images in Work and Project sections */
.work-image-rounded,
.project-image-rounded {
    border-radius: 16px !important;
    overflow: hidden !important;
}

.work-image-rounded img,
.project-image-rounded img {
    border-radius: 16px !important;
}

@media not all and (min-width: 1024px) {
    header .collapsible-header {
        position: fixed;
        right: 0px;
        flex-direction: column;
        opacity: 0;
        height: 100vh;
        min-height: 100vh;
        height: 100dvh;
        width: 0vw;
        justify-content: space-between;
        padding: 5px;
        padding-top: 5%;
        padding-bottom: 5%;
        place-items: end;
        background-color: #ffffff;
        color: #000000;
        overflow-y: auto;
        box-shadow: 2px 0px 3px #000;
    }

    .header-links{
        color: black;
    }
    
}