:root {
    --bg-color: #f5f5f7;
    --text-color: #111111;
    --text-color-secondary: #666666;
    --accent-color: #1a1a1a;
    --border-color: #e5e5e5;
    --font-primary: 'Inter', sans-serif;
    --container-padding: 4rem;
    --radius-sm: 8px;
    --radius-md: 24px;
    --radius-full: 999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.btn-primary {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.95rem;
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.btn-primary.large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.large {
    padding: 16px 32px !important;
    font-size: 1.1rem;
}

.btn-secondary {
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    display: inline-block;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.status-badge.centered {
    margin-bottom: 2rem;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #22c55e;
    border-radius: 50%;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem var(--container-padding);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    mix-blend-mode: difference;
    color: white;
    /* Will be inverted by mix-blend-mode if bg is light, but simpler to just keep it standard for now unless we do complex blend modes */
    color: var(--text-color);
    /* Reset mix blend for simplicity first */
    mix-blend-mode: normal;
    background: rgba(245, 245, 247, 0.8);
    backdrop-filter: blur(10px);
}

.nav-center {
    display: flex;
    gap: 3rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: var(--text-color);
}

.nav-link sup {
    font-size: 0.7em;
    color: var(--text-color-secondary);
    margin-left: 2px;
}

/* Hero Section */
.hero {
    height: 105vh;
    padding: 8rem var(--container-padding) 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-title {
    font-size: 12rem;
    line-height: 0.9;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    z-index: 2;
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    pointer-events: none;
    /* Let clicks pass through to image/content */
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    position: relative;
    z-index: 1;
    margin-top: 10vh;
}

.hero-role {
    max-width: 300px;
}

.hero-role h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-role p {
    color: var(--text-color-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-image-wrapper {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    overflow: hidden;
    /* border-radius: 200px 200px 0 0;  Maybe circle or arch? Screenshot shows simple cutout or rect */
    border-radius: 200px 200px 0 0;
    z-index: 3;
}

.Coding_based_work {
    margin-top: 50px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    /* Screenshot style */
}

.hero-socials {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

.social-link {
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    transition: all 0.3s;
}

.social-link:hover {
    background-color: var(--text-color);
    color: white;
    border-color: var(--text-color);
}

/* Sections General */
section {
    padding: 8rem var(--container-padding);
}

.section-title {
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 500;
}

/* Work Section */
.work-section {
    position: relative;
    background: white;
    /* Slight contrast if needed, or kept same */
    background: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

/* Faint background text PORTFOLIO */
.section-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.03);
    z-index: 0;
    width: 100%;
    pointer-events: none;
}

.section-header h2 {
    position: relative;
    z-index: 1;
}

.Coding_based_work,
.website_based_work {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.filters-left {
    display: flex;
    gap: 2rem;
}

.filter-btn {
    font-weight: 500;
    color: var(--text-color-secondary);
    font-size: 1rem;
}

.filter-btn.active {
    color: var(--text-color);
}

.view-all-link {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    transition: 0.3s;
}

.view-all-link:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.project-card {
    cursor: pointer;
}

.project-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    position: relative;
    background: #e0e0e0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    background: rgba(0, 0, 0, 0.1);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.case-study-btn {
    background: white;
    padding: 16px 32px;
    /* Or circle for just arrow */
    border-radius: var(--radius-full);
    font-weight: 500;
    transform: translateY(20px);
    transition: transform 0.4s;
}

.project-card:hover .case-study-btn {
    transform: translateY(0);
}

.project-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-tags {
    display: flex;
    gap: 10px;
}

.project-tags span {
    background: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-color-secondary);
}

/* Services */


.services-list {
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.service-item {
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: background 0.3s;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-header h3 {
    font-size: 2.5rem;
    font-weight: 400;
    text-transform: uppercase;
}

.arrow {
    font-size: 2rem;
    transform: rotate(0deg);
    transition: transform 0.3s;
}

.service-item:hover .arrow {
    transform: rotate(45deg);
}

/* Initially hide content for list items other than first if desired, or make accordion */
.service-content {
    max-height: 0;
    /* JS can toggle this or CSS hover for simple version */
    overflow: hidden;
    transition: max-height 0.4s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-content {
    max-height: 400px;
    margin-top: 1rem;
}

.service-content p {
    max-width: 600px;
    color: var(--text-color-secondary);
}

.service-image-preview {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%) rotate(-5deg) scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 20;
    max-width: 300px;
}

.service-item:hover .service-image-preview {
    opacity: 1;

    transform: translateY(-50%) rotate(0deg) scale(1);
}

/* Experience */
.experience-section {
    background: #1a1a1a;
    color: white;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.experience-header .section-title {
    color: white;
}

.years {
    color: rgba(255, 255, 255, 0.6);
}

.experience-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: padding-left 0.3s;
}

.experience-item:hover {
    padding-left: 2rem;
    background: rgba(255, 255, 255, 0.03);
}

.role-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.role-info p {
    color: rgba(255, 255, 255, 0.6);
}

.experience-date {
    color: rgba(255, 255, 255, 0.6);
}

/* .experience-link {
    display: block;
    text-decoration: none;
    color: inherit;
} */
.visit-btn {
    display: inline-block;
    background-color: white;
    color: #2b2d42;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.visit-btn:hover {
    transform: translateY(-2px);
    /* Lift on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


.hover-reveal-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 200px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 10;
}

.experience-item:hover .hover-reveal-img {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(5deg);
}

/* Contact */
.contact-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, #f5f5f7, #ffffff);
}

.contact-card {
    max-width: 800px;
    margin: 0 auto;
}

.contact-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.contact-desc {
    font-size: 1.2rem;
    color: var(--text-color-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.footer-socials {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0 var(--container-padding);
}

/* Hide default cursor */
body {
    cursor: none;
}

@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* Small dot */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

/* Smooth trailing circle */
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: 42px;
    height: 42px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    /* premium look */
}


.user-pill {
    background: var(--accent-color);
    color: white;
    padding: 6px 16px 6px 6px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.footer-link {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    :root {
        --container-padding: 2rem;
    }

    .hero-title {
        font-size: 8rem;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-end;
    }

    .hero-image-wrapper {
        position: relative;
        left: auto;
        transform: none;
        width: 100%;
        height: 400px;
        order: -1;
        margin-bottom: 2rem;
    }

    .hero-role {
        width: 100%;
        max-width: none;
        margin-bottom: 2rem;
    }

    .hero-socials {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        background: rgba(245, 245, 247, 0.95);
    }

    .nav-left {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .nav-center {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .nav-right {
        display: none;
        /* Hide CTA on mobile to save space, or move to bottom if needed. Keeping simple. */
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 10rem;
        /* More space for stacked nav */
        height: auto;
        min-height: 100vh;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 12vw;
        /* Reduced from 14vw to prevent edge touching */
        flex-direction: column;
        gap: 0;
        top: 15%;
        position: relative;
        transform: none;
        left: auto;
        margin-top: 2rem;
        width: 100%;
        /* Ensure it doesn't overflow */
        padding: 0 1rem;
        /* Safety padding */
        word-break: break-all;
        /* Prevent long words form overflowing */
    }

    .hero-content {
        margin-top: 2rem;
    }

    .hero-image-wrapper {
        height: 300px;
        width: 100%;
        position: relative;
        left: auto;
        transform: none;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Work Section Mobile */
    .website_based_work,
    .Coding_based_work {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .filters-left {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* Services Section Mobile */
    .service-header h3 {
        font-size: 1.5rem;
    }

    .service-content {
        flex-direction: column;
        align-items: flex-start;
        max-height: none;
        /* Always show or maintain accordion if JS supports it. Assuming safe to show or let JS handle. */
    }

    .service-image-preview {
        display: none;
        /* Hide hover image on mobile */
    }

    /* Experience Section Mobile */
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .experience-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 0;
    }

    .experience-item:hover {
        padding-left: 0;
        /* Disable hover shift */
    }

    .hover-reveal-img {
        display: none;
        /* Hide hover reveal */
    }

    /* Contact Section Mobile */
    .contact-section {
        min-height: auto;
        /* Fix visibility issue */
        padding: 6rem 1.5rem 8rem;
        height: auto;
    }

    .contact-title {
        font-size: 2.5rem;
    }

    .contact-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    #start-project-btn,
    .social-link.large {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
        display: block;
    }

    .footer-socials {
        flex-wrap: wrap;
        gap: 1rem;
        position: relative;
        /* specific positioning for mobile */
        bottom: auto;
        margin-top: 3rem;
    }
}


/* Project Detail Page Styles */
/* Project Detail Page Styles - Split Layout */
.project-split-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 6rem;
    padding: 140px var(--container-padding) 6rem;
    align-items: start;
    min-height: 100vh;
}

.project-visuals {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.visual-item,
.gallery-item {
    width: 100%;
}

/* Main Hero Image - Large & Full Width */
.visual-item.main-hero img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Gallery - 2 Column Grid for smaller images */
#project-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    margin-top: -1rem;
    /* Pull up closer to hero if needed, or keep gap */
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Removed aspect-ratio to allow full image display */
}

.project-info-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Header elements */
.project-category-badge {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-color-secondary);
    background: white;
}

.project-title-large {
    font-size: 4rem;
    line-height: 1.05;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.project-subtitle-mono {
    font-size: 1.25rem;
    color: var(--text-color-secondary);
    margin-bottom: 3rem;
    font-weight: 400;
}

/* Grid for Role/Stack */
.project-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.meta-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-color-secondary);
    letter-spacing: 0.05em;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.tech-stack-inline {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack-inline li {
    background: #f5f5f7;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Descriptions */
.project-description-body {
    margin-bottom: 3rem;
}

.desc-label {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

#project-description,
#project-detail-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color-secondary);
    margin-bottom: 2rem;
}

.spacer-small {
    height: 2rem;
}

/* Actions */
.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-disabled {
    padding: 12px 24px;
    background: #f0f0f0;
    color: #999;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 1024px) {
    .project-title-large {
        font-size: 3rem;
    }

    .project-split-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-info-sidebar {
        position: relative;
        top: 0;
        order: 1;
    }

    .project-visuals {
        order: 2;
    }
}

@media (max-width: 768px) {
    .project-title-large {
        font-size: 2.5rem;
    }
}



/* Contact Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-md);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    /* We will animate this with GSAP, but good to have base styles */
}

.modal-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-color-secondary);
    transition: color 0.3s;
}

.modal-close-btn:hover {
    color: var(--text-color);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-header p {
    color: var(--text-color-secondary);
    font-size: 0.95rem;
}

/* Form Styles */
#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
    background: #f9f9f9;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--text-color);
    background: white;
}

#contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.modal-submit-btn {
    width: 100%;
    margin-top: 1rem;
    justify-content: center;
    display: flex;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #22c55e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 2rem;
        width: 95%;
    }
}