/* ===================================
   Portfolio Page Styles
   =================================== */

/* Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg, var(--dark-shade) 0%, var(--dark-accent) 100%);
    color: white;
    padding: 140px 20px 80px;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
}

.portfolio-hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    max-width: 800px;
    margin: 0 auto 30px;
    opacity: 0.95;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    color: var(--dark-accent);
    background: white;
    padding: 6px;
    border-radius: 50%;
}

/* Portfolio Container */
.portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-intro h2 {
    font-size: 2.5rem;
    color: var(--dark-shade);
    margin-bottom: 20px;
}

.section-intro p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.8;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

/* Portfolio Card */
.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(1, 94, 234, 0.2);
}

.portfolio-card-image {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 94, 234, 0.1) 0%, rgba(0, 192, 250, 0.1) 100%);
    z-index: 1;
}

.browser-mockup {
    width: 90%;
    height: 85%;
    background: white;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.browser-header {
    height: 30px;
    background: #e8e8e8;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 6px;
    border-bottom: 1px solid #d0d0d0;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.browser-dot.red { background: #ff5f56; }
.browser-dot.yellow { background: #ffbd2e; }
.browser-dot.green { background: #27c93f; }

.browser-content {
    height: calc(100% - 30px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--dark-accent);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.industry-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--dark-accent);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 192, 250, 0.4);
}

.portfolio-card-content {
    padding: 35px;
}

.portfolio-card-content h3 {
    font-size: 2rem;
    color: var(--dark-shade);
    margin-bottom: 15px;
    font-weight: 700;
}

.portfolio-card-content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 25px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #333;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid var(--dark-accent);
}

.feature-tag i {
    color: var(--dark-accent);
    font-size: 1rem;
}

.portfolio-actions {
    display: flex;
    gap: 15px;
}

.portfolio-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.portfolio-btn.primary {
    background: linear-gradient(135deg, var(--dark-shade) 0%, var(--dark-accent) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(1, 94, 234, 0.3);
}

.portfolio-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(1, 94, 234, 0.4);
}

.portfolio-btn.secondary {
    background: white;
    color: var(--dark-shade);
    border: 2px solid var(--dark-shade);
}

.portfolio-btn.secondary:hover {
    background: var(--dark-shade);
    color: white;
}

/* Process Section */
.process-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 20px;
    margin-top: 60px;
}

.process-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.process-step {
    background: white;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(1, 94, 234, 0.15);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--dark-shade) 0%, var(--dark-accent) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(1, 94, 234, 0.3);
}

.process-step i {
    font-size: 3rem;
    color: var(--dark-accent);
    margin: 20px 0 15px;
}

.process-step h4 {
    font-size: 1.3rem;
    color: var(--dark-shade);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.portfolio-cta {
    background: linear-gradient(135deg, var(--dark-shade) 0%, var(--dark-accent) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-top: 80px;
    border-radius: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.portfolio-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--dark-shade);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Development Process Section
   =================================== */
.development-process {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
    overflow: hidden;
}

.development-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23015eea"></path></svg>') no-repeat;
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.process-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.process-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--main-brand-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.process-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--light-accent);
    font-weight: 400;
}

.process-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Timeline Progress Bar */
.process-timeline {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    margin-bottom: 60px;
    overflow: hidden;
}

.timeline-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--dark-shade), var(--dark-accent));
    width: 20%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(1, 94, 234, 0.5);
}

/* Process Steps Navigation */
.process-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
}

.process-step:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--dark-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.process-step.active {
    background: linear-gradient(135deg, var(--dark-shade), var(--dark-accent));
    border-color: var(--dark-accent);
    box-shadow: 0 15px 40px rgba(1, 94, 234, 0.3);
    transform: translateY(-10px);
}

.step-circle {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.process-step.active .step-circle {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.step-circle i {
    font-size: 2rem;
    color: var(--dark-shade);
    transition: all 0.3s ease;
}

.process-step.active .step-circle i {
    color: var(--dark-accent);
    transform: scale(1.15);
}

.step-circle .step-number {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: var(--dark-shade);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.process-step.active .step-circle .step-number {
    background: var(--dark-accent);
    transform: scale(1.15);
}

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

.step-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--main-brand-color);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.process-step.active .step-info h3 {
    color: white;
}

.step-info p {
    font-size: 0.9rem;
    color: var(--light-accent);
    margin: 0;
    transition: color 0.3s ease;
}

.process-step.active .step-info p {
    color: rgba(255, 255, 255, 0.9);
}

/* Process Details Cards */
.process-details {
    position: relative !important;
    min-height: 500px;
    width: 100% !important;
    background-color: transparent !important;
    padding: 0 !important;
    margin-top: 40px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-align: left;
}

.process-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-size: initial !important;
    background-position: initial !important;
    background-repeat: initial !important;
    background-image: none !important;
    padding: 0 !important;
    height: auto !important;
    width: 100% !important;
    z-index: 1 !important;
}

.process-content::before {
    display: none !important;
}

.process-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid rgba(1, 94, 234, 0.1);
}

.card-header {
    background: linear-gradient(135deg, var(--dark-shade), var(--dark-accent));
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.icon-wrapper i {
    font-size: 2rem;
    color: white;
}

.card-header h3 {
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.phase-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 400;
}

.card-body {
    padding: 40px;
}

.lead-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--main-brand-color);
    margin-bottom: 30px;
}

.key-activities h4 {
    font-size: 1.3rem;
    color: var(--main-brand-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.key-activities h4 i {
    color: var(--dark-accent);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    border-left: 4px solid var(--dark-accent);
    transition: all 0.3s ease;
}

.activity-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--dark-shade);
}

.activity-item > i {
    font-size: 1.8rem;
    color: var(--dark-shade);
    min-width: 40px;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.activity-item strong {
    display: block;
    font-size: 1.05rem;
    color: var(--main-brand-color);
    margin-bottom: 5px;
}

.activity-item p {
    font-size: 0.95rem;
    color: var(--light-accent);
    margin: 0;
    line-height: 1.5;
}

/* ===================================
   Mobile Responsive Styles
   =================================== */
@media (max-width: 768px) {
    .portfolio-hero {
        padding: 120px 20px 60px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card-image {
        height: 300px;
    }

    .portfolio-card-content {
        padding: 25px;
    }

    .portfolio-card-content h3 {
        font-size: 1.6rem;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .portfolio-actions {
        flex-direction: column;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .section-intro h2 {
        font-size: 2rem;
    }

    .portfolio-cta h2 {
        font-size: 2rem;
    }
}

/* Responsive Design for Process Section */
@media (max-width: 1024px) {
    .process-steps {
        gap: 15px;
    }
    
    .process-step {
        min-width: 120px;
        padding: 15px;
    }
    
    .step-circle {
        width: 60px;
        height: 60px;
    }
    
    .step-circle i {
        font-size: 1.5rem;
    }
    
    .step-info h3 {
        font-size: 1rem;
    }
    
    .step-info p {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .development-process {
        padding: 40px 15px;
    }
    
    .process-header {
        margin-bottom: 30px;
    }
    
    .process-header h2 {
        font-size: 1.8rem;
    }
    
    .process-subtitle {
        font-size: 1rem;
    }
    
    .process-timeline {
        margin-bottom: 20px;
    }
    
    /* Horizontal tab-style layout for mobile */
    .process-steps {
        flex-direction: row;
        gap: 5px;
        margin-bottom: 25px;
        overflow-x: auto;
        overflow-y: visible; /* Changed from hidden to visible to show step numbers */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 10px; /* Increased padding to accommodate step numbers */
        padding-top: 5px; /* Add top padding for safety */
    }
    
    /* Hide scrollbar but keep functionality */
    .process-steps::-webkit-scrollbar {
        height: 3px;
    }
    
    .process-steps::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 10px;
    }
    
    .process-steps::-webkit-scrollbar-thumb {
        background: var(--dark-accent);
        border-radius: 10px;
    }
    
    .process-details {
        margin-top: 20px !important;
        min-height: auto;
    }
    
    /* Compact horizontal step buttons */
    .process-step {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 10px 4px;
        min-width: 70px;
        max-width: 70px;
        flex-shrink: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.7);
        overflow: visible !important; /* Ensure step numbers aren't clipped */
    }

    /* Remove vertical transform on mobile to prevent cutoff */
    .process-step:hover,
    .process-step.active {
        transform: none !important;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        margin: 0 auto 6px auto;
        position: relative;
        overflow: visible !important; /* Ensure step numbers aren't clipped */
    }

    /* Prevent step circle from scaling on mobile */
    .process-step.active .step-circle {
        transform: none !important;
    }
    
    .step-circle i {
        font-size: 1.1rem;
        position: relative;
        z-index: 1;
    }

    /* Prevent icon scaling on mobile */
    .process-step.active .step-circle i {
        transform: none !important;
    }
    
    .step-circle .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
        bottom: -5px;
        right: -5px;
        z-index: 10 !important; /* Higher z-index to ensure visibility */
        position: absolute;
    }

    /* Prevent step number scaling on mobile */
    .process-step.active .step-circle .step-number {
        transform: none !important;
    }
    
    .step-info {
        text-align: center;
        flex: 1;
    }
    
    .step-info h3 {
        font-size: 0.7rem;
        margin-bottom: 0;
        line-height: 1.1;
        word-break: break-word;
    }
    
    .step-info p {
        display: none; /* Hide description on mobile tabs */
    }
    
    .card-header {
        flex-direction: row;
        text-align: left;
        padding: 20px;
        gap: 15px;
    }
    
    .icon-wrapper {
        width: 50px;
        height: 50px;
        flex-shrink: 0;
    }
    
    .icon-wrapper i {
        font-size: 1.4rem;
    }
    
    .card-header h3 {
        font-size: 1.3rem;
        margin-bottom: 3px;
    }
    
    .phase-label {
        font-size: 0.8rem;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .lead-text {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .key-activities h4 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .activity-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .activity-item {
        padding: 12px;
    }
    
    .activity-item > i {
        font-size: 1.3rem;
        min-width: 30px;
    }
    
    .activity-item strong {
        font-size: 0.95rem;
    }
    
    .activity-item p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .development-process {
        padding: 30px 10px;
    }
    
    .process-header {
        margin-bottom: 20px;
    }
    
    .process-header h2 {
        font-size: 1.6rem;
    }
    
    .process-subtitle {
        font-size: 0.9rem;
    }
    
    .process-steps {
        gap: 4px;
        margin-bottom: 20px;
    }
    
    /* Extra compact tabs for small screens */
    .process-step {
        padding: 8px 3px;
        min-width: 62px;
        max-width: 62px;
        border-radius: 10px;
    }
    
    .step-circle {
        width: 36px;
        height: 36px;
        margin-bottom: 5px;
    }
    
    .step-circle i {
        font-size: 0.95rem;
    }
    
    .step-circle .step-number {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
        bottom: -4px;
        right: -4px;
    }
    
    .step-info h3 {
        font-size: 0.65rem;
        line-height: 1.1;
    }
    
    .step-info p {
        display: none;
    }
    
    .process-details {
        margin-top: 15px !important;
    }
    
    .content-card {
        border-radius: 16px;
    }
    
    .card-header {
        padding: 15px;
        gap: 12px;
    }
    
    .icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .icon-wrapper i {
        font-size: 1.2rem;
    }
    
    .card-header h3 {
        font-size: 1.1rem;
    }
    
    .phase-label {
        font-size: 0.75rem;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .lead-text {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .key-activities h4 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
}
