/* ==================== PORTFOLIO PAGE STYLES ==================== */
/* Using your existing color variables */

/* ==================== GLOBAL STYLES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ==================== HERO SECTION ==================== */
.portfolio-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--white);
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 20px;
    position: relative;
    padding-left: 40px;
}

.hero-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--secondary);
    transform: translateY(-50%);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.hero-title-line {
    display: block;
    color: var(--gray-900);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: left;
}

.stat-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: var(--gray-200);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span, .btn i {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(41, 99, 116, 0.15);
}

.btn-primary:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(41, 99, 116, 0.25);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}

.btn-outline:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-3px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.125rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 400px;
}

.visual-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 320px;
}

.grid-box {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(41, 99, 116, 0.05), rgba(41, 99, 116, 0.02));
    border: 1px solid rgba(41, 99, 116, 0.1);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.grid-box:nth-child(1) { transform: translateY(-20px); }
.grid-box:nth-child(2) { transform: translateY(20px); }
.grid-box:nth-child(3) { transform: translateY(20px); }
.grid-box:nth-child(4) { transform: translateY(-20px); }

.floating-icons {
    position: absolute;
    inset: 0;
}

.icon-bubble {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--gray-200);
    animation: floatIcon 3s ease-in-out infinite;
}

.icon-bubble:nth-child(1) { top: 10%; left: 0; animation-delay: 0s; }
.icon-bubble:nth-child(2) { top: 20%; right: 0; animation-delay: 0.5s; }
.icon-bubble:nth-child(3) { bottom: 30%; left: 10%; animation-delay: 1s; }
.icon-bubble:nth-child(4) { bottom: 40%; right: 15%; animation-delay: 1.5s; }
.icon-bubble:nth-child(5) { top: 50%; left: 20%; animation-delay: 2s; }
.icon-bubble:nth-child(6) { bottom: 20%; right: 25%; animation-delay: 2.5s; }

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray-500);
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--secondary), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
    0% { transform: scaleY(0.5); opacity: 0.3; }
    50% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(0.5); opacity: 0.3; }
}

/* ==================== TRUSTED COMPANIES ==================== */
.trusted-section {
    padding: 60px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
}

.trusted-title {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    font-weight: 600;
}

.trusted-carousel {
    overflow: hidden;
    position: relative;
}

.trusted-carousel::before,
.trusted-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.trusted-carousel::before {
    left: 0;
    background: linear-gradient(90deg, var(--gray-50), transparent);
}

.trusted-carousel::after {
    right: 0;
    background: linear-gradient(-90deg, var(--gray-50), transparent);
}

.trusted-track {
    display: flex;
    animation: scrollTrack 30s linear infinite;
    width: fit-content;
}

.trusted-track:hover {
    animation-play-state: paused;
}

@keyframes scrollTrack {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.trusted-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 40px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.trusted-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.trusted-logo {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-800);
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.trusted-item:hover .trusted-logo {
    border-color: var(--secondary);
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(41, 99, 116, 0.1);
}

.trusted-item span {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ==================== SECTION HEADERS ==================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
    padding: 0 40px;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: var(--secondary);
    transform: translateY(-50%);
}

.section-tag::before { left: 0; }
.section-tag::after { right: 0; }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ==================== WORK SECTION ==================== */
.work-section {
    padding: 100px 0;
    background: var(--white);
}

.filter-wrapper {
    margin-bottom: 50px;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(41, 99, 116, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--white);
}

.filter-btn.active::before {
    display: none;
}
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    padding: 40px 0;
}

.project-dashboard-card {
    background: #fff;
    border-radius: 35px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
   border: 2px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
}

.project-dashboard-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
}

.dashboard-visual {
    height: 220px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Container for the fetched image */
.project-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

/* Styling the actual WordPress thumbnail */
.dashboard-img-fetch {
    width: 85%;
    height: auto;
    max-height: 160px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Hover effect: Subtle zoom/tilt like a dashboard app */
.project-dashboard-card:hover .dashboard-img-fetch {
    transform: scale(1.08) rotate(-2deg);
}

/* --- Dashboard Visual Refinement --- */
.dashboard-visual {
    height: 250px; /* Increased for better image display */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Clips the scaling image */
    padding: 20px;
}

/* Container to handle image alignment */
.project-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Image Styling: Default State (Slightly Zoomed In) */
.dashboard-img-fetch {
    width: 90%;
    height: auto;
    max-height: 180px;
    object-fit: contain; /* Shows full screenshot without cutting */
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(255,255,255,0.4);
    
    /* Animation: Subtle Zoom Out Effect */
    transform: scale(1.1); 
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

/* Hover State: Zoom Out & Enhance Shadow */
.project-dashboard-card:hover .dashboard-img-fetch {
    transform: scale(1) translateY(-5px); /* Zooms out for "Perfect Fitting" */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* --- Theme Colors (Reference Accurate) --- */
.theme-pink .dashboard-visual { background: #fdeef4; }
.theme-blue .dashboard-visual { background: #eaf6fc; }
.theme-green .dashboard-visual { background: #ecf8f1; }
.theme-yellow .dashboard-visual { background: #fff9e6; }

/* --- Floating UI Fixes --- */
.floating-ui {
    z-index: 3; /* Always stays above the image */
}

.ui-1 { top: 15%; left: 8%; }
.ui-2 { bottom: 20%; right: 8%; }

/* --- Text Area Polish --- */
.dashboard-info {
    padding: 30px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.proj-title {
    font-size: 22px;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.proj-excerpt {
    font-size: 14px;
    line-height: 1.5;
    color: #64748b; /* Professional Slate Grey */
}

/* --- Stats Alignment --- */
.info-bottom {
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}



.proj-stats span {
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

.proj-stats i { color: #3b82f6; width: 18px; }

.btn-action-black {
    background: #000;
    color: #fff;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 14px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-action-black:hover { opacity: 0.8; transform: scale(1.05); }

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

/* ==================== PROCESS SECTION ==================== */
.process-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.process-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--gray-200);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.process-card:hover::before {
    transform: scaleX(1);
}

.process-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(41, 99, 116, 0.08);
    border-color: var(--secondary);
}

.process-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: 20px;
    transition: all 0.4s ease;
}

.process-card:hover .process-number {
    color: rgba(41, 99, 116, 0.1);
    transform: scale(1.1);
}

.process-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 15px;
}

.process-desc {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-section {
    padding: 100px 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--gray-200);
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(41, 99, 116, 0.08);
    border-color: var(--secondary);
}

.testimonial-quote {
    font-size: 5rem;
    color: var(--gray-200);
    line-height: 1;
    margin-bottom: 20px;
    font-family: serif;
    transition: all 0.4s ease;
}

.testimonial-card:hover .testimonial-quote {
    color: rgba(41, 99, 116, 0.1);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
    box-shadow: 0 10px 20px rgba(41, 99, 116, 0.15);
}

.author-info h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 5px;
}

.author-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-50), var(--white));
}

.cta-card {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 70px 50px;
    background: var(--white);
    border-radius: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
}

.cta-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-text {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--gray-500);
    font-size: 0.9375rem;
}

.cta-note i {
    color: var(--secondary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-tag {
        padding-left: 0;
    }
    
    .hero-tag::before {
        display: none;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .filter-buttons {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .process-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .cta-card {
        padding: 50px 20px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-text {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .trusted-item {
        padding: 0 20px;
    }
    
    .trusted-logo {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
}