/*
Theme Name: Rohant's portfolio 2026
Theme URI: 
Author: Rohant
Author URI: 
Description: minimalist portfolio theme
Version: 1.0.2
Text Domain: custom-portfolio
*/

/* Basic Reset and Variables */

@font-face {
    font-family: 'Nippo';
    src: url('./assets/fonts/Nippo-Extralight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nippo';
    src: url('./assets/fonts/Nippo-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nippo';
    src: url('./assets/fonts/Nippo-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nippo';
    src: url('./assets/fonts/Nippo-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Nippo';
    src: url('./assets/fonts/Nippo-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}



:root {
    --light: #FFFDE6;
    --dark: #101010;
    --gray-500: #5f5f5f;
    --gray-300: #3f3f3f;
    --gray-100: #232323;
    --accent: #A021F0;
    --xs-spacing: 0.25rem;
    --sm-spacing: 1rem;
    --md-spacing: 2rem;
    --lg-spacing: 4rem;
    --xl-spacing: 8rem;
    --fs-xs: clamp(0.625rem, 0.5969rem + 0.1225vw, 0.75rem);
    --fs-sm: clamp(0.875rem, 0.8326rem + 0.186vw, 1rem);
    --fs-md: clamp(1.5rem, 1.3571rem + 0.7143vw, 2rem);
    --fs-lg: clamp(2.5rem, 2.1429rem + 1.7857vw, 3.75rem);
    --fs-xl: clamp(4rem, 3.2143rem + 3.9286vw, 6.25rem);
}


.light-mode {
    --light: var(--dark);
    --dark: var(--light);
    --gray-500: #b2b2b2;
    --gray-300: #DBDBDB;
    --gray-100: #d6d5d5;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;

}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body {
    text-transform: uppercase;
    font-family: 'Nippo', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    transition: background-color 0.3s ease, color 0.3s ease;
    letter-spacing: 0.05em;
}

/* Remove all default link styles */
a,
a:visited,
a:hover,
a:active,
a:focus {
    color: inherit !important;
    text-decoration: none !important;
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Optional: reset transition and font weight if Elementor adds them */
a {
    transition: none !important;
    font-weight: inherit !important;
}

.text-center {
    text-align: center;
}


.flex {
    display: flex;
}

.mobile-show {
    display: none;
}

.direction-column {
    flex-direction: column;
}

.w-full {
    width: 100%;
}

.h-full {
    min-height: 100svh;
    height: 600px;
}

/* Layout */

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-end {
    justify-content: flex-end;
}

.align-start {
    align-items: start;
}

.align-center {
    align-items: center;
}

.align-end {
    align-items: end;
}


/* Spacing */

.p-xs {
    padding: var(--xs-spacing);
}

.p-sm {
    padding: var(--sm-spacing);
}

.p-md {
    padding: var(--md-spacing);
}

.p-lg {
    padding: var(--lg-spacing);
}

.p-xl {
    padding: var(--xl-spacing);
}

.mb-xs {
    margin-bottom: var(--xs-spacing);
}

.mb-sm {
    margin-bottom: var(--sm-spacing);
}

.mb-md {
    margin-bottom: var(--md-spacing);
}

.mb-lg {
    margin-bottom: var(--lg-spacing);
}

.mb-xl {
    margin-bottom: var(--xl-spacing);
}

.gap-xs {
    gap: var(--xs-spacing);
}

.gap-sm {
    gap: var(--sm-spacing);
}

.gap-md {
    gap: var(--md-spacing);
}

.gap-lg {
    gap: var(--lg-spacing);
}

.gap-xl {
    gap: var(--xl-spacing);
}



/* font-size */

.fs-xs {
    font-size: var(--fs-xs);
    font-weight: 400;
    line-height: 1.5;

}

.fs-sm {
    font-size: var(--fs-sm);
    font-weight: 400;
    line-height: 1.6;
}

.fs-md {
    font-size: var(--fs-md);
}

.fs-lg {
    font-size: var(--fs-lg);
}

.fs-xl {
    font-size: var(--fs-xl);
}


/* text color */

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

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

.text-gray-500 {
    color: var(--gray-500);
}



.container {
    padding: 0 var(--sm-spacing)
}


/* .line {
    background-color: var(--gray-300);
} */

.icon {
    width: 7px;

}



/* navbar */

header {
    position: absolute;
    z-index: 999;
    height: 0px;
}



svg {
    fill: var(--light);

}

.cursor-pointer {
    cursor: pointer;
}

.logo svg {
    width: 40px !important;
}

ul {
    list-style: none;
}

li {
    line-height: 1.3;
}

nav ul,
.mood {
    gap: 0.3rem;
}



nav a.active {
    color: var(--light) !important;
}


.cta {
    padding: 0 1rem 0 0.7rem
}


.blinking {
    background-color: #00CF1F;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    animation: blink 1s ease-in-out infinite;
}


/* footer */



footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;

}

/* footer end */

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* navbar end */


main {
    height: 100svh;
    width: 100%;
    overflow-x: hidden;
    position: relative;

}

#grained-container {
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    position: fixed !important;
    z-index: -1;
}

.corner-border {
    cursor: pointer;
    --b: 2px;
    --c: var(--light);
    --w: 5px;
    transition: all .2s ease-in;

    border: var(--b) solid #0000;
    --_g: #0000 90deg, var(--c) 0;
    --_p: var(--w) var(--w) border-box no-repeat;
    background:
        conic-gradient(from 90deg at top var(--b) left var(--b), var(--_g)) 0 0 / var(--_p),
        conic-gradient(from 180deg at top var(--b) right var(--b), var(--_g)) 100% 0 / var(--_p),
        conic-gradient(from 0deg at bottom var(--b) left var(--b), var(--_g)) 0 100% / var(--_p),
        conic-gradient(from -90deg at bottom var(--b) right var(--b), var(--_g)) 100% 100% / var(--_p);

}

.corner-border:hover {
    --w: 7px;
}

.scramble {
    overflow: hidden;
}

.scramble:hover {
    color: var(--light) !important;
}


.swiper {
    height: 100%;
    width: 100%;
}

.swiper-wrapper {
    height: 100%;
    width: 100%;
}

.swiper-slide {
    display: flex;

    justify-content: center;
    align-items: center;

}

.project-card-item {
    position: relative;
    /* overflow: hidden; */
}

.project-title {
    position: absolute;
    top: 0px;
    left: 0;
    transition: all 0.5s ease-in;
    opacity: 0;
}


.swiper-slide.swiper-slide-active .project-title {
    top: -25px;
    opacity: 1;
}



.project-card-image {
    background-color: var(--gray-100);
    padding: clamp(1rem, 0.7013rem + 1.2987vw, 2rem);
    ;
    width: clamp(300px, 35vw, 700px);
    aspect-ratio: 16 / 9;
    /* adjust to your design */

    box-sizing: border-box;
}




img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}



.fit-content {
    width: fit-content;
    height: fit-content;
}



.top,
.bottom {
    flex: 0 0 50%;
}

.top {
    position: relative;
}

.top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 1px;
    width: var(--border-progress, 100%);
    background-color: var(--gray-300);
}

.w-50 {
    width: 50%
}


/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(2rem, -0.0597rem + 8.9552vw, 8rem);
    ;
    width: 100%;
    margin-top: var(--md-spacing);
    margin-bottom: var(--xl-spacing);
}

.archive-item {
    width: 100%;
}


.text-nowrap {
    white-space: nowrap;
}

.overflow-hidden {
    overflow: hidden;
    height: auto;
}



.archive-image {
    background-color: var(--gray-100);
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    position: relative;
    cursor: pointer;

}

.archive-image img {
    height: 90%;
}


/* Filter styles */
.filter-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.filter-btn.active .scramble,
.filter-btn:hover .scramble {
    color: var(--light) !important;
}



/* Chat styles */


.chat-container {
    display: flex;
    flex-direction: column;
    width: 30rem;
    height: 350px;

}

#chat-messages {
    padding-bottom: 1rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    min-height: 0;
}

#chat-messages::-webkit-scrollbar {
    display: none;

}


#chat-messages>*:first-child {
    margin-top: auto !important;
}

.chat-message {
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
    flex-shrink: 0;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.avatar {
    width: 32px;
    height: 32px;
    margin-bottom: -10px;
    overflow: hidden;
    flex-shrink: 0;

}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bubble {
    padding: 0.8rem 1.2rem;
    line-height: 1.4;
    position: relative;
}

.bot-bubble {
    background-color: var(--gray-100);
    color: var(--light);
}

.bot-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 15px 0 0;
    border-color: var(--gray-100) transparent transparent transparent;
}

.user-bubble {
    background-color: var(--light);
    color: var(--dark);
}

.user-bubble::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 0 15px;
    border-color: var(--light) transparent transparent transparent;
}

/* Chat Input */
.chat-input-wrapper {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    gap: 1rem;
    position: relative;
    margin-top: 2rem;
}

.chat-input-wrapper input {
    background: transparent;
    border: none;
    color: var(--light);
    outline: none;
    padding: 0.8rem 0.5rem;
    width: 100%;
}

/* Autofill styling fixes */
.chat-input-wrapper input:-webkit-autofill,
.chat-input-wrapper input:-webkit-autofill:hover,
.chat-input-wrapper input:-webkit-autofill:focus,
.chat-input-wrapper input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--light);
    -webkit-box-shadow: 0 0 0px 1000px var(--gray-100) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.chat-input-wrapper input::placeholder {
    color: var(--gray-500);
}

.send-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.1);
}

.send-btn svg {
    fill: var(--light);
    width: 20px;
    height: 20px;
}

/* Typing indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--light);
    display: inline-block;
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {

    0%,
    80%,
    100% {
        transform: scale(0);
        opacity: 0.3;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}


.w-25 {
    width: 25%;
}


.social-link {
    width: 250px;
}

@media (width <=1024px) {

    header {
        mix-blend-mode: difference;
    }


    .w-25 {
        width: 50%;
    }

    .swiper-slide.swiper-slide-active .project-title {
        top: -20px;
        opacity: 1;
    }

    footer #mumbai-time {
        width: 30%;
    }

    .mobile-hide {
        display: none;
    }

    .mobile-show {
        display: flex;
    }

    .archive-grid {
        grid-template-columns: repeat(2, 1fr);

    }
}

@media (width <=768px) {



    .w-50,
    .w-25,
    .social-link {
        width: 100%;
    }

    li {
        line-height: 1.5;
    }

    nav ul,
    .mood {
        gap: 0.5rem;
    }

    /* .brief {
        width: 250px;
        left: 1rem;
        bottom: 5rem;
    } */

    .archive-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}