/* WorksDelight Portfolio Page Styles */

/* Use the same CSS Variables for Branding Consistency */
:root {
    --primary: #258412;
    --secondary: #1C2A3E;
    --white: #FFFFFF;
    --wd-primary-color: #258412;
    --wd-secondary-color: #1C2A3E;
    --wd-accent-color: #4ECDC4;
    --wd-text-color: #4A5568;
    --wd-heading-color: #2C3E50;
    --wd-background-light: #F8F9FA;
    --wd-background-dark: #1C2A3E;
    --wd-border-radius: 8px;
    --wd-box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Portfolio Hero Section - Creative Design */
.portfolio-hero {
    position: relative;
    padding: 90px 0 74px;
    background-color: var(--white);
    overflow: hidden;
    margin-top: 80px;
    color: var(--wd-secondary-color);
}


/* .nav-links a {
    color: var(--wd-heading-color);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    width: 100%;
    justify-content: center;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--wd-primary-color);
    transition: width 0.3s ease;
} */


/* Creative Shapes */
.creative-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.2;
}

.shape.circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wd-primary-color), var(--wd-accent-color));
    top: -50px;
    left: -100px;
    animation: float 15s ease-in-out infinite;
}

.shape.square {
    width: 120px;
    height: 120px;
    background-color: var(--wd-primary-color);
    top: 30%;
    right: 10%;
    transform: rotate(45deg);
    animation: rotate 30s linear infinite;
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 150px solid var(--wd-primary-color);
    top: 60%;
    left: 10%;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite reverse;
}

.shape.dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--wd-primary-color) 10%, transparent 11%),
        radial-gradient(var(--wd-primary-color) 10%, transparent 11%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    top: 40%;
    right: -50px;
    opacity: 0.1;
    animation: float 18s ease-in-out infinite;
}

.shape.zigzag {
    width: 150px;
    height: 150px;
    background:
        linear-gradient(135deg, transparent 45%, var(--wd-primary-color) 45%, var(--wd-primary-color) 55%, transparent 55%),
        linear-gradient(45deg, transparent 45%, var(--wd-primary-color) 45%, var(--wd-primary-color) 55%, transparent 55%);
    background-size: 30px 30px;
    background-repeat: repeat;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.1;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(45deg);
    }

    to {
        transform: rotate(405deg);
    }
}

/* Creative Hero Content */
.creative-hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

/* Left Side - Text Content */
.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 20px;
    align-items: flex-start;
}

.creative-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, var(--wd-primary-color), #4ECDC4);
    border-radius: 50px;
    padding: 6px 6px 6px 20px;
    margin-bottom: 20px;
    max-width: fit-content;
}

.badge-text {
    font-weight: 500;
    font-size: 14px;
    color: white;
    margin-right: 10px;
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: white;
    color: var(--wd-primary-color);
    font-size: 12px;
}

.creative-title {
    font-size: 52px;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 1.2s ease;
    color: #1c2a3e;
}

.title-line {
    display: block;
}

/* .title-line.emphasis {
    font-size: 62px;
    color: var(--wd-secondary-color);
    margin: 5px 0;
} */

.highlight-text {
    color: var(--wd-primary-color);
    position: relative;
    display: inline-block;
}

.creative-description {
    /* margin-bottom: 40px; */
    max-width: 550px;
}

.creative-description p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--wd-text-color);
    margin-bottom: 30px;
}

.cta-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.creative-btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(90deg, var(--wd-primary-color), #4ECDC4);
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 550;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(37, 132, 18, 0.2);
}

.creative-btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(37, 132, 18, 0.3);
}

.btn-text {
    margin-right: 10px;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.creative-btn-primary:hover .btn-icon {
    transform: translateX(5px);
}

.creative-btn-outline {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--wd-secondary-color);
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--wd-secondary-color);
    transition: all 0.3s ease;
}

.creative-btn-outline:hover {
    background-color: var(--wd-secondary-color);
    color: white;
    transform: translateY(-5px);
}

/* Process Timeline */
#process {
    background-color: #EBF4E9;
    padding: 60px 0;
}

.process-timeline-horizontal {
    overflow-x: auto;
}

.timeline-track {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
}

.timeline-progress {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #c6ddd7;
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
    width: 23%;
    text-align: center;
}

.timeline-marker {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background-color: #258412;
    color: #FFFFFF;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -18px auto 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin-bottom: 8px;
    font-size: 18px;
    color: #1c2a3e;
}

.timeline-content p {
    font-size: 14px;
    color: #6C757D;
    line-height: 1.5;
    display: inline-block;
}

/* Achievement Pills */
.achievement-pills {
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.pill {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pill-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--wd-primary-color);
    line-height: 1;
}



.pill-number sup {
    font-size: 18px;
    font-weight: 700;
    top: -0.5em;
}

.pill-text {
    font-size: 14px;
    line-height: 1.2;
    color: var(--wd-text-color);
}

.pill-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.1);
    margin: 0 20px;
}

/* Right Side - Image Collage */
.hero-right {
    position: relative;
}

.image-collage {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.collage-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.collage-img {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.collage-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 132, 18, 0.2), rgba(78, 205, 196, 0.1));
    z-index: 1;
}

.img-1 {
    width: 60%;
    height: 70%;
    top: 0;
    right: 0;
    z-index: 3;
    transform: rotate(3deg);
}

.img-2 {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 0;
    z-index: 2;
    transform: rotate(-5deg);
}

.img-3 {
    width: 45%;
    height: 50%;
    bottom: 0;
    right: 15%;
    z-index: 1;
    transform: rotate(-2deg);
}

.collage-img:hover {
    transform: scale(1.05) rotate(0deg);
    z-index: 10;
}

.tech-float {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 5;
    animation: float 6s ease-in-out infinite;
}

.tech-float i {
    font-size: 24px;
    color: var(--wd-primary-color);
}

.tech-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.tech-2 {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.tech-3 {
    top: 70%;
    right: 5%;
    animation-delay: 4s;
}

/* Brands Section */
.creative-brands {
    background-color: rgba(37, 132, 18, 0.05);
    padding: 60px 0;
    position: relative;
}

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

.brands-headline {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.headline-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--wd-text-color);
    margin: 0 20px;
    white-space: nowrap;
}

.headline-line {
    flex: 1;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    max-width: 100px;
}

.brands-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.brands-logo-container img {
    height: 50px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.brands-logo-container img:hover {
    opacity: 1;
    filter: grayscale(0);
}



/* Responsive Styles */
@media (max-width: 1200px) {
    .creative-title {
        font-size: 48px;
    }

    .title-line.emphasis {
        font-size: 54px;
    }
}

@media (max-width: 992px) {
    .creative-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-left {
        order: 1;
        padding-right: 0;
    }

    .creative-hero-content {
        padding-bottom: 20px;
    }

    .hero-right {
        order: 1;
        margin-bottom: 40px;
    }

    .creative-badge,
    .creative-description {
        margin-left: 0px;
        margin-right: 0px;
    }

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

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

    .image-collage {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .creative-title {
        font-size: 36px;
    }

    .title-line.emphasis {
        font-size: 42px;
    }

    .creative-description p {
        font-size: 16px;
    }

    .pill-number {
        font-size: 28px;
    }

    .pill-text {
        font-size: 12px;
    }

    .pill-divider {
        height: 30px;
        margin: 0 15px;
    }

    .image-collage {
        min-height: 350px;
    }

    .collage-img.img-1 {
        width: 70%;
    }

    .collage-img.img-2 {
        width: 60%;
    }

    .collage-img.img-3 {
        width: 55%;
    }

    .achievement-pills {
        margin-top: 30px;
    }
}

@media (max-width: 576px) {
    .portfolio-hero {
        padding: 100px 0 0;
    }

      .creative-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .title-line.emphasis {
        font-size: 28px;
    }

    .cta-container {
        flex-direction: column;
        gap: 15px;
    }

    .achievement-pills {
        flex-direction: row;
        gap: 50px;
    }

    .pill {
        flex-direction: column;
        gap: 5px;
    }

    .pill-divider {
        display: none;
    }

    .image-collage {
        min-height: 300px;
    }

    .tech-float {
        width: 40px;
        height: 40px;
    }

    .tech-float i {
        font-size: 20px;
    }

    .brands-headline {
        flex-direction: column;
        gap: 15px;
    }

    .headline-line {
        display: none;
    }
}

/* Portfolio Showcase Section */
#portfolio-grid {
    background-color: var(--white);
    padding: 60px 0;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 40px;
}

.portfolio-header h2 {

    font-size: 28px;
    margin-bottom: 16px;
    color: var(--wd-heading-color);
}

/* ============================================
   PORTFOLIO FILTER TABS - Matching Our Expertise Style
   ============================================ */
.filter-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    gap: 10px;
}

.filter-btn {
    padding: 12px 28px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    user-select: none;
    color: var(--wd-text-color);
}

.filter-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 132, 18, 0.2);
    color: var(--wd-primary-color);
}

.filter-btn.active {
    background: linear-gradient(90deg, var(--wd-primary-color), var(--wd-accent-color));
    color: white;
    border-color: white;
    box-shadow: 0 5px 15px rgba(37, 132, 18, 0.25);
    animation: filter-pulse 2s infinite;
}

@keyframes filter-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 132, 18, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 132, 18, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 132, 18, 0);
    }
}

/* Filter Controls Responsive */
@media (max-width: 768px) {
    .filter-controls {
        gap: 8px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .filter-controls {
        gap: 6px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 12px;
        margin-bottom: 4px;
    }
}

/* ============================================
   PREMIUM PORTFOLIO GRID - DUAL LAYOUT SYSTEM
   Masonry for "All" | Grid for Filtered Views
   ============================================ */

/* Portfolio Grid - CSS Columns Masonry Layout (Chrome) */
.portfolio-grid.masonry-layout {
    column-count: 3;
    column-gap: 24px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.portfolio-grid.masonry-layout .portfolio-item {
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 24px;
    display: block;
}

/* Flexbox Layout: For filtered tabs - 3 per row, centered */
.portfolio-grid.flex-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: clamp(20px, 2.5vw, 32px);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-grid.flex-layout .portfolio-item {
    flex: 0 0 calc(33.333% - 22px);
    max-width: calc(33.333% - 22px);
    display: flex;
    flex-direction: column;
}

/* Animation state handled by JavaScript */

/* Animation is handled by JavaScript for filtering compatibility */

.footer-policy ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

/* ============================================
   PREMIUM PORTFOLIO CARDS - VISUAL STYLES
   Phone Mockup Design with Gradient
   ============================================ */

/* Card visual styles (merged with masonry layout above) */
.portfolio-item {
    position: relative;
    background: linear-gradient(135deg, #e8d5f0 0%, #d4e5f7 30%, #c5e8e0 70%, #d1f0e8 100%);
    border-radius: 24px;
    overflow: visible;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    padding: 10px;
    /* Safari column break fix - critical */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}


/* Hover effect for cards - only when visible */
.portfolio-item.animate-in:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Vertical Tag on Right Side */
 

.portfolio-badge i {
    display: none;
}

/* ============================================
   PHONE MOCKUP WITH GIF IMAGE
   ============================================ */

.portfolio-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    margin-bottom: 5px;
}

/* Phone Frame */
.portfolio-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 441px;
    background: linear-gradient(145deg, #2c2c2c 0%, #1a1a1a 50%, #0d0d0d 100%);
    border-radius: 40px;
    z-index: 1;
}

/* Phone Notch */
.portfolio-image::after {
    content: '';
    position: absolute;
    top: calc(49% - 202px);
    left: 50%;
    transform: translateX(-50%);
    width: 62px;
    height: 16px;
    background: #1a1a1a;
    border-radius: 20px;
    z-index: 3;
}

/* GIF Image Container */
.portfolio-gif {
    position: relative;
    width: 207px;
    height: 428px;
    border-radius: 34px;
    overflow: hidden;
    z-index: 2;
    background: #ffffff;
}

.portfolio-gif img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s ease;
}

.portfolio-item:hover .portfolio-gif img {
    transform: scale(1.02);
}

/* ============================================
   WEB PROJECT - PREMIUM LAPTOP MOCKUP
   Matching Detail Page Exact Design
   ============================================ */

/* Remove phone frame styles for web projects */
.portfolio-item.web-project .portfolio-image::before,
.portfolio-item.web-project .portfolio-image::after {
    display: none;
}

.portfolio-item.web-project .portfolio-image {
    position: relative;
    padding: 14px 20px 17px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Web Project Items */
.portfolio-item.web-project {
    overflow: visible;
}

/* Laptop Mockup Container */
.portfolio-item.web-project .laptop-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    z-index: 2;
}

/* Laptop Screen Bezel */
.portfolio-item.web-project .laptop-screen {
    position: relative;
    background: linear-gradient(145deg, #2d2d2d 0%, #1a1a1a 100%);
    border-radius: 16px 16px 0 0;
    padding: 6px 6px 0 6px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Webcam Dot */
.portfolio-item.web-project .laptop-screen::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #2a2a2a 40%, #1a1a1a 70%);
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Laptop Screen Inner (Image Container) */
.portfolio-item.web-project .laptop-screen-inner {
    background: #0f0f0f;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
}

.portfolio-item.web-project .laptop-screen-inner {
    display: flex;
    align-items: flex-start;
}

.portfolio-item.web-project .laptop-screen-inner img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: top center;
    display: block;
    flex-shrink: 0;
    animation: smoothScrollAuto 30s ease-in-out infinite;
}

/* Auto-Height Scroll Animation - Works for Any Image Height */
@keyframes smoothScrollAuto {
    0%, 10% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(calc(-100% + var(--laptop-screen-height, 200px)));
    }
    50% {
        transform: translateY(calc(-100% + var(--laptop-screen-height, 200px)));
    }
    80% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(0);
    }
}

/* Pause animation on hover */
.portfolio-item.web-project:hover .laptop-screen-inner img {
    animation-play-state: paused;
}

/* Laptop Base (Keyboard Section) */
.portfolio-item.web-project .laptop-base {
    position: relative;
    height: 10px;
    background: linear-gradient(180deg, #3d3d3d 0%, #2a2a2a 50%, #1f1f1f 100%);
    border-radius: 0 0 8px 8px;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Hinge Detail on Base */
.portfolio-item.web-project .laptop-base::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 6px;
    background: linear-gradient(180deg, #4a4a4a, #3a3a3a);
    border-radius: 0 0 4px 4px;
}

/* Laptop Bottom (Wider Base) */
.portfolio-item.web-project .laptop-bottom {
    position: relative;
    height: 12px;
    background: linear-gradient(180deg, #1f1f1f, #0f0f0f);
    border-radius: 0 0 12px 12px / 0 0 8px 8px;
    margin: 0 -20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Bottom Highlight Detail */
.portfolio-item.web-project .laptop-bottom::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    border-radius: 2px;
}

/* Legacy Image Support */
.portfolio-image > img,
.portfolio-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
}

.portfolio-item:hover .portfolio-video {
    opacity: 1;
}

.portfolio-item:hover .portfolio-image > img,
.portfolio-item:hover .portfolio-thumbnail {
    transform: scale(1.05);
}

/* Featured Badge */
.portfolio-badge {
    position: absolute;
    transform: rotate(90deg) translateX(-30%);
    -webkit-transform: rotate(90deg) translateX(-30%);
    right: -29px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    bottom: 169px;
    z-index: 10;
    /* Safari rendering fix */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.portfolio-badge span {
    background: #ffffffe8;
    color: #191919;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    z-index: 8;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    gap: 8px;
    min-width: 112px;
    text-align: center;
}

.portfolio-badge i {
    font-size: 10px;
    color: #ffd700;
}

/* Hide Elements */
.play-indicator {
    display: none !important;
}

.portfolio-overlay {
    display: none;
}

.overlay-content {
    color: var(--white);
    width: 100%;
}

.portfolio-category {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

.btn-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.btn-link:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-link:hover:after {
    transform: translateX(5px);
}

/* ============================================
   CONTENT AREA
   Frosted Glass Card Style
   ============================================ */

.portfolio-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 18px 20px;
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    /* Safari column break fix */
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

/* Top Row - Title & Link */
.content-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.content-left {
    flex: 1;
    min-width: 0;
}

.portfolio-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #1a1a2e;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-content .subtitle {
    font-size: 13px;
    font-style: italic;
    color: #666;
    margin: 0;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.portfolio-item:hover .portfolio-content h3 {
    color: #2d8a6e;
}

/* Link Icon Button */
.portfolio-content .btn-detail-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: linear-gradient(135deg, var(--wd-primary-color) 0%, var(--wd-accent-color) 100%);
    border-radius: 50%;
    color: #ffffff !important;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 132, 18, 0.3);
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

/* Make entire portfolio card clickable */
.portfolio-item {
    cursor: pointer;
}

.portfolio-content .btn-detail-link i {
    font-size: 16px;
    color: #ffffff !important;
    transition: transform 0.3s ease;
    line-height: 1;
}

.portfolio-content .btn-detail-link:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(37, 132, 18, 0.4);
    background: linear-gradient(135deg, var(--wd-accent-color) 0%, var(--wd-primary-color) 100%);
}

.portfolio-content .btn-detail-link:hover i {
    transform: translateX(3px);
}

/* Description */
.portfolio-content p {
    color: #4a5568;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
 display: -webkit-box;
  -webkit-line-clamp: 2;      /* number of lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide tags */
.portfolio-tags,
.project-stats,
.stat-item {
    display: none !important;
}

/* Available On Label */
.available-on-label {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 12px;
}

/* App Store Buttons Container */
.app-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* App Store Button Styles */
.btn-app-store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-app-store:hover {
    border-color: #2d8a6e;
    box-shadow: 0 4px 12px rgba(45, 138, 110, 0.15);
}

.btn-app-store img,
.btn-app-store svg {
    width: 20px;
    height: 20px;
}

.btn-app-store .store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn-app-store .store-text small {
    font-size: 8px;
    font-weight: 400;
    text-transform: uppercase;
    opacity: 0.7;
}

.btn-app-store .store-text span {
    font-size: 12px;
    font-weight: 600;
}

/* Legacy See More Button - Hidden */
.btn-view-details {
    display: none;
}

.cta-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 500px;
}

/* Featured Project Section */
#featured-project {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.featured-header {
    text-align: center;
    margin-bottom: 50px;
}

.featured-header h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--wd-heading-color);
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.featured-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--wd-box-shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.featured-image:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.featured-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0.7);
}

.featured-text {
    padding: 20px;
}

.featured-description p {
    color: var(--wd-text-color);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 25px;
}

.featured-stats {
    display: flex;
    gap: 40px;
    margin: 30px 0;
}

.featured-stats .stat-item {
    display: flex;
    flex-direction: column;
}

.featured-stats .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--wd-primary-color);
    margin-bottom: 5px;
}

.featured-stats .stat-label {
    font-size: 14px;
    color: var(--wd-text-color);
}

#contact {
    padding: 60px 0px 60px 0px;
    background-color: #f8f9fa;
}


/* Testimonials Section */
/* #testimonials {
    background-color: #fff;
    position: relative;
    padding: 60px 0;
}

.testimonials-slider {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.client-details {
    text-align: start;
}

 

.testimonial-content {
    background-color: #FFFFFF;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.testimonial-quote {
    font-size: 36px;
    color: rgba(43, 185, 101, 0.2);
    margin-bottom: 16px;
}

.testimonial-content p {
    font-size: 18px;
    line-height: 1.6;
    color: #495057;
    font-style: italic;
    margin-bottom: 24px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-image {
    width: 60px;
    height: 60px;
    border-radius: 9999px;
    overflow: hidden;
}

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

.client-details h4 {
    margin-bottom: 4px;
    font-size: 18px;
    color: #2C3E50;
}

.client-details p {
    margin: 0;
    font-style: normal;
    font-size: 14px;
    color: #6C757D;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.testimonial-prev,
.testimonial-next {
    width: 42px;
    height: 42px;
    border-radius: 9999px;
    background-color: #FFFFFF;
    border: 1px solid #E9ECEF;
    color: #2C3E50;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: #258412;
    color: #FFFFFF;
    border-color: #258412;
} */

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
}


/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    /* Masonry: 3 columns */
    .portfolio-grid.masonry-layout {
        column-count: 3;
        column-gap: 20px;
    }

    .portfolio-grid.masonry-layout .portfolio-item {
        margin-bottom: 20px;
    }

    /* Flexbox: 3 per row */
    .portfolio-grid.flex-layout {
        gap: clamp(18px, 2vw, 28px);
        max-width: 1200px;
    }

    .portfolio-grid.flex-layout .portfolio-item {
        flex: 0 0 calc(33.333% - 20px);
        max-width: calc(33.333% - 20px);
    }

    .portfolio-content h3 {
        font-size: 18px;
    }

    .portfolio-content p {
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    /* Masonry: 2 columns */
    .portfolio-grid.masonry-layout {
        column-count: 2;
        column-gap: 20px;
    }

    .portfolio-grid.masonry-layout .portfolio-item {
        margin-bottom: 20px;
    }

    /* Flexbox: 2 per row */
    .portfolio-grid.flex-layout {
        gap: clamp(16px, 2vw, 24px);
        max-width: 900px;
    }

    .portfolio-grid.flex-layout .portfolio-item {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }

    .portfolio-item {
        padding: 10px;
    }

    .portfolio-content h3 {
        font-size: 20px;
    }

    .portfolio-badge {
        bottom: 177px;
    }

    /* Laptop mockup responsive adjustments */
    .portfolio-item.web-project .laptop-mockup {
        max-width: 280px;
    }
}

@media (max-width: 992px) {
    .portfolio-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-badges,
    .hero-stats,
    .hero-buttons {
        justify-content: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-showcase {
        max-width: 600px;
        margin: 0 auto;
        order: -1;
    }

    .showcase-grid {
        aspect-ratio: 16/10;
    }

    .portfolio-content {
        padding: 22px 24px 26px;
    }

    .portfolio-content p {
        -webkit-line-clamp: 2;
    }

    .btn-view-details {
        padding: 12px 24px;
        font-size: 13px;
    }
    .portfolio-image {
    padding: 20px 10px;
}
    .portfolio-badge {
        bottom: 187px;
        right: -18px;
    }
}

@media (max-width: 912px) {
    /* Masonry: 2 columns */
    .portfolio-grid.masonry-layout {
        column-count: 2;
        column-gap: 16px;
    }

    .portfolio-grid.masonry-layout .portfolio-item {
        margin-bottom: 16px;
    }

    /* Flexbox: 2 per row */
    .portfolio-grid.flex-layout {
        gap: clamp(16px, 2vw, 20px);
    }

    .portfolio-grid.flex-layout .portfolio-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 90px 0 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 28px;
    }

    .clients-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .client-logos {
        gap: 20px;
    }

    .client-logos img {
        height: 20px;
    }

    .creative-btn-primary {
        justify-content: center;
        width: 100%;
    }

    .btn-outline {
        width: 100%;
    }

    #portfolio-grid {
        padding: 40px 0;
    }

    .featured-content {
        display: block;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: center;
    }

    .cta-image {
        height: auto;
    }

    .cta-container {
        margin: 0px;
    }

    .creative-brands {
        padding: 40px 0;
    }

    .featured-header h2 {
        font-size: 28px;
    }

    .creative-description {
        margin-bottom: 20px;
    }

    .footer-policy li a {
        font-size: 13px;
        padding: 5px;
        font-weight: 500;
    }

    .footer-policy ul {
        display: flex;
        gap: 10px !important;
        list-style: none;
    }

    .timeline-item {
        width: 100%;
        display: inline-block;
        margin-bottom: 40px;
    }

    .timeline-track {
        min-width: auto;
        display: block;
    }

    .timeline-progress {
        display: none;
    }

    .feature-list-bottom {
        justify-content: start;
    }

    .featured-stats {
        display: block;
    }
  
    .portfolio-content {
        padding: 20px;
    }

    .portfolio-content h3 {
        font-size: 22px;
    }

    .portfolio-content p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    .portfolio-badge {
        bottom: 198px;
        right: -18px;
    }

    /* Masonry: 1 column */
    .portfolio-grid.masonry-layout {
        column-count: 1;
        column-gap: 0;
    }

    .portfolio-grid.masonry-layout .portfolio-item {
        margin-bottom: 20px;
    }

    /* Flexbox: 1 per row */
    .portfolio-grid.flex-layout {
        gap: 24px;
        max-width: 500px;
    }

    .portfolio-grid.flex-layout .portfolio-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Laptop mockup for mobile - full width */
    .portfolio-item.web-project .laptop-mockup {
        max-width: 100%;
    }

    .portfolio-item.web-project .laptop-bottom {
        margin: 0 -20px;
    }

    .portfolio-item.web-project .portfolio-image {
        padding: 15px 15px 20px;
    }
}

@media (max-width: 665px) {
    .portfolio-item {
        border-radius: 20px;
        padding: 10px;
    }
  
    .portfolio-content {
        padding: 16px;
    }

    .portfolio-content h3 {
        font-size: 18px;
        margin-bottom: 4px;
    }

    .portfolio-content .subtitle {
        font-size: 13px;
    }

    .portfolio-content p {
        font-size: 13px;
    }

    .portfolio-badge {
        font-size: 8px;
        padding: 6px 10px;
    }
    .portfolio-badge {
        bottom: 171px;
        right: -27px;
    }
}

 
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-badges {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }

    .main-item {
        grid-column: 1;
        grid-row: 1;
    }

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

@media (max-width: 380px) {
.portfolio-badge {
        right: -52px;
        padding: 0;
    }
.portfolio-badge span {
    padding: 6px 14px;
}
}


/* Technology Expertise Section */
.tech-expertise-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(37, 132, 18, 0.05) 0%, rgba(78, 205, 196, 0.08) 100%);
    position: relative;
    overflow: hidden;
}

.tech-expertise-section::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(rgba(37, 132, 18, 0.08), transparent 70%);
    top: -150px;
    right: -100px;
    z-index: 0;
}

.tech-expertise-section::after {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(rgba(78, 205, 196, 0.08), transparent 70%);
    bottom: -200px;
    left: -150px;
    z-index: 0;
}

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

.tech-expertise-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.tech-expertise-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

/* Reuse tech-tabs styles from the main CSS but with portfolio-specific tweaks */
.tech-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    gap: 10px;
}

.tech-tab {
    padding: 12px 28px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    user-select: none;
}

.tech-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.tech-tab.active {
    background: linear-gradient(90deg, var(--wd-primary-color), var(--wd-accent-color));
    color: white;
    border-color: white;
    box-shadow: 0 5px 15px rgba(37, 132, 18, 0.25);
    animation: subtle-pulse 2s infinite;
}

@keyframes subtle-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 132, 18, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(37, 132, 18, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 132, 18, 0);
    }
}

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

.tech-content {
    display: none;
    animation: fadeInRight 0.5s ease-in-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tech-content.active {
    display: block;
}

.tech-showcase {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tech-main {
    background-color: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--wd-primary-color);
}

.tech-title {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.tech-title i {
    font-size: 28px;
    margin-right: 18px;
    background: linear-gradient(135deg, var(--wd-primary-color), var(--wd-accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tech-title h3 {
    font-size: 26px;
    margin: 0;
    font-weight: 600;
}

.tech-main p {
    color: var(--wd-text-color);
    margin-bottom: 0;
    line-height: 1.7;
    font-size: 16px;
}

.tech-hexgrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.hex-item {
    width: 100%;
    position: relative;
    padding-bottom: 115%;
    overflow: visible;
}

.hex-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    z-index: 1;
}

.hex-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 15%;
    z-index: 2;
}

.hex-content i {
    font-size: 32px;
    color: var(--wd-primary-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.hex-content span {
    font-size: 15px;
    font-weight: 600;
    color: var(--wd-heading-color);
    transition: all 0.3s ease;
}

.hex-item:hover::before {
    background: linear-gradient(135deg, var(--wd-primary-color), var(--wd-accent-color));
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(37, 132, 18, 0.2);
}

.hex-item:hover .hex-content i,
.hex-item:hover .hex-content span {
    color: white;
}

@media (max-width: 992px) {
    .tech-expertise-section {
        padding: 80px 0;
    }

    .tech-expertise-header h2 {
        font-size: 36px;
    }

    .tech-hexgrid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tech-title h3 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .tech-expertise-section {
        padding: 60px 0;
    }

    .tech-expertise-header h2 {
        font-size: 32px;
    }

    .tech-showcase {
        gap: 20px;
    }

    .tech-main {
        padding: 25px;
    }

    .tech-hexgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .tech-tab {
        padding: 10px 20px;
        font-size: 14px;
    }

    .tech-title i {
        font-size: 24px;
    }

    .tech-title h3 {
        font-size: 22px;
    }

    .tech-main p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .tech-expertise-section {
        padding: 60px 0;
    }

    .tech-expertise-header h2 {
        font-size: 28px;
    }

    .tech-hexgrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .tech-tabs {
        margin-bottom: 30px;
    }

    .tech-tab {
        margin-bottom: 8px;
        padding: 8px 16px;
        font-size: 13px;
    }

    .hex-content i {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .hex-content span {
        font-size: 12px;
    }

    .tech-main {
        padding: 20px;
    }
}

/* ============================================
   SAFARI BROWSER FIX - MASONRY.JS LAYOUT
   Safari uses Masonry.js library for proper masonry
   html.is-safari class is added via JavaScript
   ============================================ */

/* Safari: Disable CSS columns, use Masonry.js instead */
html.is-safari .portfolio-grid.masonry-layout {
    column-count: unset !important;
}

html.is-safari .portfolio-grid.masonry-layout .portfolio-item {
    width: calc(33.333% - 18px) !important;
    float: left !important;
    margin-bottom: 24px !important;
}

/* Safari responsive: 1024px - 2 columns */
@media (max-width: 1024px) {
    html.is-safari .portfolio-grid.masonry-layout .portfolio-item {
        width: calc(50% - 14px) !important;
    }
}

/* Safari responsive: 768px - 1 column */
@media (max-width: 768px) {
    html.is-safari .portfolio-grid.masonry-layout .portfolio-item {
        width: 100% !important;
        float: none !important;
    }
}

