/* =========================================
   TANVIR CREATIONS — PORTFOLIO
   Orange + White Fluid Tech Theme
========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: #252525;
    background: #fffdf9;
    line-height: 1.8;
    min-height: 100vh;
    padding: 35px 7%;
    overflow-x: hidden;
    position: relative;
    isolation: isolate;
}

/* Fluid orange background */
body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    animation: fluidMove 12s ease-in-out infinite alternate;
}

body::before {
    width: 320px;
    height: 320px;
    background: rgba(255, 132, 35, 0.16);
    top: -100px;
    right: -90px;
}

body::after {
    width: 260px;
    height: 260px;
    background: rgba(255, 183, 77, 0.16);
    bottom: -90px;
    left: -90px;
    animation-delay: -5s;
}

@keyframes fluidMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-35px, 30px) scale(1.15);
    }

    100% {
        transform: translate(25px, -20px) scale(0.95);
    }
}

/* =========================================
   NAVBAR — GLASSMORPHISM
========================================= */

.navbar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;

    width: 100%;
    padding: 16px 24px;
    margin-bottom: 55px;

    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 122, 24, 0.22);
    border-radius: 20px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 8px 32px rgba(40, 30, 20, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);

    animation: navAppear 0.8s ease both;
}

.navbar .logo {
    display: inline-flex;
    align-items: center;
    color: #242424;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.navbar .logo span {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 7px;
    background: #ff650e;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(255, 101, 14, 0.55);
}

.navbar .logo:hover {
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 18px;
    color: #555;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 12px;

    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;

    transition: all 0.35s ease;
}

.nav-links a:hover {
    color: #f15a0a;
    background: rgba(255, 122, 24, 0.08);
    border-color: rgba(255, 122, 24, 0.16);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: #fff;
    background: linear-gradient(120deg, #ff8a24, #ff5708);
    box-shadow: 0 5px 16px rgba(255, 101, 14, 0.22);
}

.nav-links a.active:hover {
    color: #fff;
    box-shadow: 0 8px 24px rgba(255, 101, 14, 0.32);
}

@keyframes navAppear {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   PORTFOLIO INTRODUCTION
========================================= */

.portfolio-header {
    max-width: 800px;
    margin: 0 auto 65px;
    text-align: center;
    animation: fadeUp 0.8s ease both;
}

.subtitle {
    margin-bottom: 12px;
    color: #ff650e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.portfolio-header h1 {
    margin-bottom: 22px;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -2px;

    background: linear-gradient(
        100deg,
        #ff7a18,
        #ff4d00,
        #d93800
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.portfolio-header h1 span {
    color: #ff650e;
}

.portfolio-header .intro {
    max-width: 620px;
    margin: 0 auto;
    color: #66666d;
    font-size: 1rem;
    line-height: 1.9;
}

/* =========================================
   ARTWORK SECTION
========================================= */

.artwork-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 75px;
}

.section-heading {
    margin-bottom: 28px;
    padding-left: 18px;
    border-left: 4px solid #ff7a18;
}

.section-heading h2 {
    margin: 0 0 5px;
    color: #252525;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.4;
}

.section-heading h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    margin-top: 9px;
    border-radius: 20px;
    background: linear-gradient(90deg, #ff7a18, #ffb347);
    transition: width 0.35s ease;
}

.section-heading:hover h2::after {
    width: 85px;
}

.section-heading p {
    margin-top: 9px;
    color: #777780;
    font-size: 0.92rem;
}

/* =========================================
   RESPONSIVE PORTFOLIO GRID
========================================= */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}

/* Artwork card */
.artwork-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 122, 24, 0.18);
    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(40, 30, 20, 0.06),
        0 0 0 4px rgba(255, 122, 24, 0.025);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;

    animation: fadeUp 0.7s ease both;
}

.artwork-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 122, 24, 0.55);

    box-shadow:
        0 18px 40px rgba(255, 122, 24, 0.13),
        0 0 0 5px rgba(255, 122, 24, 0.045);
}

/* Image frame: identical dimensions */
.artwork-card img {
    display: block;

    width: 100%;
    height: 280px;
    flex-shrink: 0;

    /* Show entire artwork without cropping */
    object-fit: contain;
    object-position: center;

    /* Consistent visual frame */
    padding: 14px;
    margin: 0;

    background: rgba(255, 247, 239, 0.75);
    border: none;
    border-bottom: 1px solid rgba(255, 122, 24, 0.12);
    border-radius: 0;

    box-shadow: none;
    transition: transform 0.4s ease;
}

.artwork-card:hover img {
    transform: scale(1.035);
    box-shadow: none;
}

/* Image descriptions */
.artwork-info {
    flex: 1;
    padding: 19px 20px 22px;
}

.artwork-info h3 {
    margin-bottom: 7px;
    color: #292929;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.artwork-info p {
    margin: 0;
    color: #777780;
    font-size: 0.85rem;
    line-height: 1.75;
}

/* =========================================
   FOOTER
========================================= */

footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 10px 8px;
    text-align: center;
    border-top: 1px solid rgba(255, 122, 24, 0.2);
}

footer p {
    max-width: none;
    margin: 0;
    color: #888;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

/* =========================================
   ANIMATION
========================================= */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

/* Tablet */
@media (max-width: 950px) {
    body {
        padding: 30px 5%;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .artwork-card img {
        height: 260px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    body {
        padding: 22px 5%;
    }

    .navbar {
        padding: 14px 16px;
        margin-bottom: 40px;
        border-radius: 16px;
        gap: 12px;
    }

    .navbar .logo {
        font-size: 1.35rem;
    }

    .nav-links {
        gap: 5px;
    }

    .nav-links a {
        padding: 9px 12px;
        font-size: 0.84rem;
    }

    .portfolio-header {
        margin-bottom: 48px;
    }

    .portfolio-header h1 {
        letter-spacing: -1px;
    }

    .portfolio-header .intro {
        font-size: 0.94rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .artwork-card {
        border-radius: 13px;
    }

    .artwork-card img {
        height: 190px;
        padding: 8px;
    }

    .artwork-info {
        padding: 13px 12px 16px;
    }

    .artwork-info h3 {
        font-size: 0.88rem;
    }

    .artwork-info p {
        font-size: 0.78rem;
    }

    .section-heading h2 {
        font-size: 1.5rem;
    }
}

/* Very narrow phones */
@media (max-width: 380px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .artwork-card img {
        height: 260px;
    }

    .navbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        width: 100%;
    }
}

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
