:root {
    /* Colors */
    --primary-blue: #1e3a8a;
    --light-blue: #31a7f7;
    --gradient-blue: linear-gradient(to right, #1e3a8a, #3b82f6);
    --bright-gradient: linear-gradient(to right, #00f7ff, #ff00ff, #00f7ff);
    --white: #ffffff;
    --grey-color: #999999;
    --yellow: #facc15;
    --black: #000000;
    --light-gray: #dedfe0;
    --faded-blue: rgba(59, 130, 246, 0.2);
    --green-gradient: linear-gradient(to right, #00ff00, #00cc00);

    /* Font Sizes */
    --h1-font-size: 6rem;
    --h2-font-size: 3rem;
    --h3-font-size: 1.5rem;
    --p-font-size: 1rem;
    --span-font-size: 1rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Main Container */
.pft-pg-container {
    display: flex;
    /* background-color: var(--black); */
    color: var(--white);
    min-height: 100vh;
    max-width: 1468px;
    margin: 0 auto;
}

/* Left Sidebar (Navigation) */
.pft-pg-sidebar {
    width: 240px;
    padding: 2rem 1rem;
    /* background-color: var(--black); */
    position: sticky;
    top: 80px;
    height: 100vh;
    overflow-y: auto;
    z-index: 10;
}

.pft-pg-sidebar ul {
    list-style: none;
}

.pft-pg-sidebar ul li {
    margin-bottom: 1.5rem;
}

.pft-pg-sidebar ul li a {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: var(--p-font-size);
    font-weight: 500;
    transition: color 0.3s ease;
}

.pft-pg-sidebar ul li a i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.pft-pg-sidebar ul li a:hover,
.pft-pg-sidebar ul li a.active {
    color: var(--light-blue);
}

/* Right Section (Content) */
.pft-pg-content {
    flex: 1;
    padding: 2rem;
}

.pft-pg-section {
    margin-bottom: 3rem;
}

.pft-pg-section h2 {
    font-size: var(--h3-font-size);
    background: var(--white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pft-pg-section p {
    font-size: var(--p-font-size);
    color: var(--grey-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Grid for Cards (General) */
.pft-pg-grid {
    display: grid;
    gap: 10px;
}/* Grid for Cards (General) */
.pft-pg-grid-2 {
    display: grid;
    gap: 2px;
}

/* Small Cards Grid (Websites, Logos, Social Media Posts) */
.pft-pg-small-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}
.pft-pg-small-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Large Cards Grid (Banners, Thumbnails) */
.pft-pg-large-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* AI Video Grid - Four Videos Per Row */
.pft-pg-ai-video-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 6px;
}

/* Video Projects Grid - Two Videos Per Row */
.pft-pg-video-projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 1rem;
}

/* Graphic Design Grid - Small Gap */
.pft-pg-graphic-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3px; /* Very small gap */
}

/* Website Cards */
.pft-pg-website-card {
    position: relative;
    /* background: rgba(255, 255, 255, 0.1); */
    /* backdrop-filter: blur(10px); */
    /* -webkit-backdrop-filter: blur(10px); */
    padding: 10px;
    max-width: 450px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.pft-pg-website-card:hover {
    background: rgba(253, 253, 253, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.pft-pg-website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(16, 72, 255, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.pft-pg-website-card:hover::before {
    opacity: 1;
}

.pft-pg-website-card .pft-pg-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.pft-pg-website-card .pft-pg-year{
    font-size:12px;
    color: var(--grey-color);
    /* padding: 0.25rem 0.5rem;
    border-radius: 5px; */
}
.pft-pg-website-card .pft-pg-category {
    font-size: 14px;
    font-weight: bold;
    color: var(--light-gray);
    text-transform: uppercase;
}

.pft-pg-website-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    position: relative;
    z-index: 1;
}

.pft-pg-website-card .pft-pg-title {
    font-size: 12px;
    margin: 8px 0;
    color: var(--light-gray);

    text-align: center;
    position: relative;
    z-index: 1;
}

.pft-pg-website-card .pft-pg-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.pft-pg-website-card .pft-pg-footer a {
    background: transparent;
    /* border: 1px solid rgba(255, 255, 255, 0.3); */
    color: var(--light-blue);
    padding: 5px;
    /* border-radius: 5px; */
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.pft-pg-website-card .pft-pg-footer a :hover{
    color: var(--white);
}

.pft-pg-website-card .pft-pg-footer i {
    font-size: 12px;
    color: var(--light-gray);
}

/* Square Cards (Graphic Design, Social Media Posts, Logos) */
.pft-pg-square-card {
    position: relative;
    cursor: pointer;
}

.pft-pg-square-card img {
    width: 100%;
    height: 270px;
    object-fit: cover;
    border-radius: 2px;
}

/* Banner Cards */
.pft-pg-banner-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 5px;
}

/* Thumbnail Cards */
.pft-pg-thumbnail-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

/* AI Video Cards */
.pft-pg-ai-card {
    position: relative;
}

.pft-pg-ai-card video {
    width: 100%;
    height: 390px; /* Adjusted height for 9:16 aspect ratio (150px width * 1.8 ≈ 270px) */
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 2px;
    background-color: #1a1a1a;
}

/* Video Projects Cards */
.pft-pg-video-card {
    position: relative;
}

.pft-pg-video-card video {
    width: 100%;
    height: 450px; /* Adjusted height for 9:16 aspect ratio (250px width * 1.8 ≈ 450px) */
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 5px;
    background-color: #1a1a1a;
}

/* Popup for Square Images */
.pft-pg-image-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8));
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.pft-pg-image-popup img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.pft-pg-image-popup.active {
    display: flex;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pft-pg-container {
        flex-direction: column;
        max-width: 100%;
    }

    .pft-pg-sidebar {
        width: 100%;
        height: auto;
        margin-top: 80px;
        position: static;
        padding: 1rem;
    }

    .pft-pg-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .pft-pg-sidebar ul li {
        margin-bottom: 0;
    }

    .pft-pg-sidebar ul li a {
        font-size: 0.9rem;
    }

    .pft-pg-content {
        padding: 1rem;
    }

    .pft-pg-section h2 {
        font-size: 2rem;
    }

    /* Sections with 4 objects (AI, Graphic Design) - 2 per row */
    .pft-pg-ai-video-grid,
    .pft-pg-graphic-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    /* Sections with 2 or 3 objects (Websites, Social Media Posts, Logos, Thumbnails) - 1 per row */
    .pft-pg-small-grid,
    .pft-pg-large-grid {
        grid-template-columns: 1fr;
    }

    /* Video Projects - 2 videos per row with small gap */
    .pft-pg-video-projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .pft-pg-square-card img,
    .pft-pg-thumbnail-card img {
        height: 200px;
    }

    .pft-pg-banner-card img {
        height: 180px;
    }

    .pft-pg-ai-card video {
        height: 250px;
    }

    .pft-pg-video-card video {
        height: 250px;
    }
}

/* Ensure max-width is respected on larger screens */
@media (min-width: 1468px) {
    .pft-pg-container {
        margin-left: auto;
        margin-right: auto;
    }

    .pft-pg-sidebar {
        width: 250px;
    }

    .pft-pg-content {
        width: calc(1468px - 250px);
    }
}