/* --- Variables --- */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --color-bg: #f5f5f7;
    --color-text: #1d1d1f;
    --color-text-light: #6e6e73;
    --color-accent: #000000;
    /* Minimalist accent */
    --color-white: #ffffff;
    --color-border: rgba(0, 0, 0, 0.1);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
    /* Neumorphic-ish */
    --shadow-hover: 0 20px 60px -10px rgba(0, 0, 0, 0.048);

    --spacing-section: 120px;
    --spacing-sm: 60px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -3px;
    color: #111;
}

/* --- Lenis Smooth Scroll --- */
html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}


/* --- New Model Cursor (Cinema Lens) --- */
:root {
    --cursor-size: 12px;
    --cursor-outline-size: 44px;
}


.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100000;
    border-radius: 50%;
    mix-blend-mode: difference;
}

.cursor-dot {
    width: var(--cursor-size);
    height: var(--cursor-size);
    background-color: #fff;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.cursor-outline {
    width: var(--cursor-outline-size);
    height: var(--cursor-outline-size);
    border: 1.5px solid #fff;
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        height 0.4s cubic-bezier(0.19, 1, 0.22, 1),
        border-color 0.3s ease,
        background-color 0.3s ease;
}


/* PRELOADER */
#preloader {
    position: fixed;
    inset: 0;
    background: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
    transition: .15s linear;
}

.signature-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* SVG SIZE */
.signature-box svg {
    width: 700px;
    max-width: 95%;
    display: block;
    margin: 0 auto;
}

/* SVG PATH ANIMATION */
.signature-box path {
    fill: transparent !important;
    stroke: #fff !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: signature 20.5s linear forwards;
}



/* DRAW EFFECT */
@keyframes signature {
    to {
        stroke-dashoffset: 0;
        fill: #fff;
    }
}

.subtitle {
    font-size: 14px;
    margin-top: 20px;
    text-align: center;
    color: #fff;
    opacity: .8;
}

/* REMOVE PRELOADER */
body.loaded #preloader {
    opacity: 0;
    visibility: hidden;
}


body.hovering .cursor-dot {
    width: 6px;
    height: 6px;
}

body.hovering .cursor-outline {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 1);
    border-color: transparent;
}

.display-1 {
    font-size: clamp(32px, 7vw, 98px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -3px;
    color: #111;
}

.display-2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.text-lg {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-light);
}

/* --- Components --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    border-color: var(--color-text);
    color: var(--color-text);
}

/* --- Creative Logo --- */
.logo-creative {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-creative span {
    background: linear-gradient(135deg, #000 0%, #666 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-creative .dot {
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    margin-top: 10px;
    -webkit-text-fill-color: initial;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 32px 0;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.header.scrolled {
    padding: 16px 0;
    background: rgba(245, 245, 247, 0.8);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.btn-header {
    padding: 8px 18px !important;
    font-size: 0.8rem !important;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0 24px;
    color: var(--color-text);
    position: relative;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.6;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 2px;
    background: #000;
    /* Ensure black for visibility */
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Mobile Overlay --- */
.menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-overlay.active {
    right: 0;
}

.menu-overlay a {
    font-size: 3rem;
    font-weight: 700;
    margin: 15px 0;
    font-family: var(--font-heading);
    transition: 0.3s ease;
}

.menu-overlay a:hover {
    transform: translateX(10px);
    color: var(--color-text-light);
}

.header .btn-primary {
    margin-left: 20px;
}


/* --- Section Icons --- */
.section-icon-3d {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

/* --- Hero --- */
.hero {
    min-height: 800px;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-light);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-text-light);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* --- Spectrum Skills Section --- */
.spectrum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

@media (max-width: 992px) {
    .spectrum-grid {
        grid-template-columns: 1fr;
    }
}

.spectrum-card {
    background: #ffffff;
    border-radius: 40px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
}

.spectrum-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Gradient Blobs */
.spectrum-card::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.spectrum-card.design-card::before {
    background: linear-gradient(135deg, #FF9A9E 0%, #FECFEF 100%);
    top: -50px;
    right: -50px;
}

.spectrum-card.dev-card::before {
    background: linear-gradient(135deg, #A18CD1 0%, #FBC2EB 100%);
    bottom: -50px;
    left: -50px;
}

.spectrum-content {
    position: relative;
    z-index: 1;
}

.spectrum-header {
    margin-bottom: 40px;
}

.spectrum-icon {
    width: 60px;
    margin-bottom: 24px;
    display: block;
}

.spectrum-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.spectrum-desc {
    font-size: 1.1rem;
    color: var(--color-text-light);
    max-width: 90%;
    line-height: 1.6;
}

.spectrum-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.spectrum-tag {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.spectrum-card:hover .spectrum-tag {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* --- Featured Works Stack --- */
.works-section {
    position: relative;
}

.stack-wrapper {
    position: relative;
    height: 100vh;
}

.stack-cards {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stack-card {
    position: absolute;
    width: 90%;
    max-width: 1000px;
    height: 60vh;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    overflow: hidden;
    transform-origin: center bottom;
}

.card-img-col {
    width: 60%;
    height: 100%;
}

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

.card-content-col {
    width: 40%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Marquee --- */
.marquee-container {
    padding: 80px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
    background: var(--color-white);
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

.marquee-item {
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-text-light);
    margin-right: 60px;
    font-family: var(--font-heading);
}

/* --- FAQ --- */
.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    text-align: left;
}

.accordion-title {
    font-size: 1.2rem;
    font-weight: 500;
}

.accordion-icon {
    width: 24px;
    height: 24px;
    position: relative;
    transition: transform 0.3s ease;
}

.accordion-icon::after,
.accordion-icon::before {
    content: '';
    position: absolute;
    background: var(--color-text);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.accordion-icon::before {
    width: 100%;
    height: 2px;
}

.accordion-icon::after {
    width: 2px;
    height: 100%;
    transition: transform 0.3s ease;
}

.active .accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    height: 0;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.accordion-body {
    padding-bottom: 24px;
    color: var(--color-text-light);
    line-height: 1.6;
    max-width: 90%;
}

/* --- Footer --- */
.footer {
    padding: 80px 0 40px;
    background-color: #111;
    color: #fff;
    border-radius: 40px 40px 0 0;
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin: 0 8px;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* --- Contact Page --- */
.contact-hero {
    padding: 160px 0 80px;
}

.form-control {
    width: 100%;
    background: none;
    border: none;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--color-text);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-text);
}

.form-group {
    margin-bottom: 40px;
}

/* --- Contact Us 3D Icons --- */
.contact-item-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.contact-3d-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-right: 20px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

.contact-item-wrapper:hover .contact-3d-icon {
    transform: scale(1.3) rotate(10deg);
}

/* --- Responsive --- */

/* --- Hero Shapes --- */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.8;
    filter: blur(10px);
}

.shape-1 {
    top: 10%;
    left: 5%;
    width: 300px;
    animation: float 10s ease-in-out infinite;
}

.shape-2 {
    bottom: 20%;
    right: 5%;
    width: 250px;
    animation: float 14s ease-in-out infinite reverse;
}

/* --- Typewriter --- */
.typewriter-prefix {
    font-weight: 500;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.1rem;
    color: var(--color-text-light);
}

#typewriter {
    border-right: 2px solid var(--color-text);
    padding-right: 4px;
    animation: blink 0.8s step-end infinite;
    will-change: opacity;
    text-transform: none;
    letter-spacing: normal;
    color: var(--color-text);
}

@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--color-text);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(0, -40px) rotate(5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* --- Global Utility Classes --- */
.section-padding {
    padding: var(--spacing-section) 0;
}

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

.section-padding-md {
    padding: 80px 0;
}

.pt-100 {
    padding-top: 100px !important;
}

.pb-100 {
    padding-bottom: 100px !important;
}

.bg-white-pure {
    background-color: #ffffff !important;
}

.mt-100 {
    margin-top: 100px !important;
}

.mt-200 {
    margin-top: 200px !important;
}

.min-vh-80 {
    min-height: 80vh !important;
}

.opacity-8 {
    opacity: 0.8 !important;
}

.opacity-5 {
    opacity: 0.5 !important;
}

.fs-0-9 {
    font-size: 0.9rem !important;
}

.fs-0-8 {
    font-size: 0.8rem !important;
}

.fs-2-rem {
    font-size: 2rem !important;
    line-height: 1.5 !important;
    color: var(--color-text-light) !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.max-w-600 {
    max-width: 600px !important;
}

.w-full {
    width: 100% !important;
}

.h-full {
    height: 100% !important;
}

.gap-10 {
    gap: 10px !important;
}

/* Photo Container (About) */
.photo-container {
    width: 320px;
    height: 420px;
    background: #ddd;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 4px solid #fff;
    box-shadow: var(--shadow-soft);
}

.user-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    /* Always show the image */
}

.photo-placeholder-text {
    display: none;
    /* Hide placeholder */
}

/* Works Card Gradients & Layers */
.stack-card-1 {
    background-color: #f1f1f1;
    z-index: 1;
}

.stack-card-2 {
    background-color: #e8e8e8;
    z-index: 2;
    transform: translateY(100vh) scale(0.9);
}

.stack-card-3 {
    background-color: #e0e0e0;
    z-index: 3;
    transform: translateY(100vh) scale(0.9);
}

.card-gradient-1 {
    background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    width: 100%;
    height: 800px;
}

.card-gradient-2 {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    width: 100%;
    height: 800px;
}

.card-gradient-3 {
    background: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    width: 100%;
    height: 800px;
}

.project-card-container img,
.stack-card img {
    width: 100%;
}

.project-card-container {
    border-radius: 32px;
    overflow: hidden;
    background: #eee;
    display: block;
    margin-bottom: 24px;
}

.project-gradient-1 {
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    width: 100%;
    height: 670px;
}

.project-gradient-2 {
    background: linear-gradient(to top, #accbee 0%, #e7f0fd 100%);
    width: 100%;
    height: 670px;
}

.mb-150-imp {
    margin-bottom: 50px !important;
}

/* Contact Page Enhancements */
.contact-social-img {
    width: 40px;
    height: 40px;
    margin-right: 0;
}

.hero-arrow-container {
    margin-top: 100px;
}

.hero-arrow-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.hero-arrow-icon {
    font-size: 2rem;
    color: var(--color-text);
    animation: bounce 2s infinite;
}

.contact-card {
    border-radius: 32px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.footMnText {
    color: #fff !important;
}

.hero-reveal.hero-arrow-container {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    overflow: hidden;
}

.fffs {
    margin-bottom: 0 !important;
}

/* --- Works Grid Design --- */
.works-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 100px;
}

@media (max-width: 768px) {
    .works-grid-new {
        grid-template-columns: 1fr;
    }
}

.work-item-new {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    padding: 20px;
    background: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-item-new:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.work-img-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f0f0f0;
    aspect-ratio: 16 / 10;
}

.work-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

/* Corner brackets */
.bracket {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    z-index: 2;
    opacity: 0.8;
}

.bracket.top-left {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.bracket.top-right {
    top: 15px;
    right: 15px;
    border-left: none;
    border-bottom: none;
}

.bracket.bottom-left {
    bottom: 15px;
    left: 15px;
    border-right: none;
    border-top: none;
}

.bracket.bottom-right {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

.work-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 3;
}

.work-item-new:hover .work-img-overlay {
    opacity: 1;
}

.work-img-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    transform: scale(0.5);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.work-item-new:hover .work-img-icon {
    transform: scale(1);
}

.work-info-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.work-title-new {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
    font-family: var(--font-heading);
}

.work-date-new {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
}

.work-tag-new {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--color-text);
    background: #fafafa;
}

/* --- Premium Capabilities Section --- */
.premium-skill-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.premium-skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
}

.skill-icon-3d {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.premium-skill-badge {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.premium-skill-badge:hover {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}




/* PREMIUM MARQUEE PILLS */
.marquee-section {
    padding: 100px 0;
    background: transparent;
}

.marquee-main-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -3px;
    color: #111;
}

.marquee-pill-wrapper {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
    /* Edge fade effect */
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-pill-track {
    display: flex;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.marquee-pill-content {
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    flex-shrink: 0;
    padding-right: 15px;
    /* Ensures the gap is included in the width */
    animation: pillScroll 60s linear infinite;
}

.marquee-pill-content.reverse {
    animation: pillScrollReverse 60s linear infinite;
}

.mrq-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px 22px;
    border-radius: 100px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    font-size: 15px;
    font-weight: 600;
    color: #111;
    transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.mrq-pill i {
    font-size: 1.1em;
    color: #555;
}

.mrq-pill:hover {
    transform: translateY(-5px);
    border-color: #003cff;
    box-shadow: 0 10px 30px rgba(255, 140, 90, 0.1);
}

@keyframes pillScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes pillScrollReverse {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

/* --- Redesigned Skills Section --- */
.skills-filter-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.skills-filter-btn {
    padding: 12px 28px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    outline: none;
}

.skills-filter-btn.active,
.skills-filter-btn:hover {
    background: var(--color-text);
    color: #fff;
    border-color: var(--color-text);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.skills-redesign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
    position: relative;
    z-index: 5;
}

.skill-redesign-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Gradient borders using mask technique */
.skill-redesign-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: all 0.4s ease;
    opacity: 0.15;
}

.skill-redesign-card.cat-design::before {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.skill-redesign-card.cat-dev::before {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.skill-redesign-card.cat-prof::before {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.skill-redesign-card:hover::before {
    opacity: 1;
}

.skill-redesign-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.skill-redesign-icon-box {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.skill-redesign-card.cat-design .skill-redesign-icon-box {
    color: #ff5e62;
    background: rgba(255, 94, 98, 0.06);
}

.skill-redesign-card.cat-dev .skill-redesign-icon-box {
    color: #8e2de2;
    background: rgba(142, 45, 226, 0.06);
}

.skill-redesign-card.cat-prof .skill-redesign-icon-box {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.06);
}

.skill-redesign-card:hover .skill-redesign-icon-box {
    transform: scale(1.18) rotate(6deg);
}

.skill-redesign-info {
    display: flex;
    flex-direction: column;
}

.skill-redesign-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.skill-redesign-type {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}