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

/* Portfolio Introduction */
.portfolio-intro {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Portfolio Companies Section */
.portfolio-companies {
    padding: 6rem 0;
}

/* Company Card */
.company-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 25px;
    margin-bottom: 4rem;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 214, 90, 0.05), transparent);
    transition: left 0.8s ease;
}

.company-card:hover::before {
    left: 100%;
}

.company-card:hover {
    border-color: var(--primary-accent);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 80px rgba(255, 214, 90, 0.15);
}

/* Company Header */
.company-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    border-bottom: 1px solid var(--border-subtle);
}

.company-logo-container {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 1rem;
}

.company-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.company-card:hover .company-logo {
    transform: scale(1.05);
}

.company-title-section {
    flex: 1;
}

.company-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.company-industry {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Company Description */
.company-description {
    padding: 3rem;
}

.company-description p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.company-description p:last-child {
    margin-bottom: 0;
}

/* Company Footer */
.company-footer {
    padding: 2rem 3rem 3rem;
    display: flex;
    justify-content: flex-end;
}

.visit-site-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-accent);
    color: var(--primary-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.visit-site-btn:hover {
    background: var(--primary-accent);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 214, 90, 0.3);
}

/* Portfolio Stats */
.portfolio-stats {
    background: rgba(255, 214, 90, 0.05);
    padding: 6rem 0;
}

.stats-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.stats-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animation for Portfolio Cards */
@media (prefers-reduced-motion: no-preference) {
    .company-card {
        animation: fadeInUp 0.8s ease-out forwards;
        opacity: 0;
        transform: translateY(40px);
    }

    .company-card:nth-child(1) {
        animation-delay: 0.1s;
    }

    .company-card:nth-child(2) {
        animation-delay: 0.2s;
    }

    .company-card:nth-child(3) {
        animation-delay: 0.3s;
    }

    .company-card:nth-child(4) {
        animation-delay: 0.4s;
    }

    .company-card:nth-child(5) {
        animation-delay: 0.5s;
    }

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

/* Responsive Design */
@media (max-width: 968px) {
    .company-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 2.5rem;
    }

    .company-logo-container {
        width: 100px;
        height: 70px;
    }

    .company-name {
        font-size: 1.8rem;
    }

    .company-description {
        padding: 2rem 2.5rem;
    }

    .company-footer {
        padding: 1.5rem 2.5rem 2.5rem;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }

    .intro-title {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .company-header {
        padding: 2rem;
    }

    .company-logo-container {
        width: 80px;
        height: 60px;
    }

    .company-name {
        font-size: 1.6rem;
    }

    .company-industry {
        font-size: 1rem;
    }

    .company-description {
        padding: 2rem;
    }

    .company-description p {
        font-size: 1rem;
    }

    .company-footer {
        padding: 1rem 2rem 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stats-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .portfolio-companies {
        padding: 4rem 0;
    }

    .portfolio-stats {
        padding: 4rem 0;
    }

    .company-card {
        margin-bottom: 3rem;
        border-radius: 20px;
    }

    .company-header {
        padding: 1.5rem;
    }

    .company-description {
        padding: 1.5rem;
    }

    .company-footer {
        padding: 1rem 1.5rem 1.5rem;
    }

    .company-name {
        font-size: 1.4rem;
    }

    .company-description p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .visit-site-btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .intro-title {
        font-size: 1.8rem;
    }

    .intro-text {
        font-size: 1rem;
    }

    .stats-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 1rem;
    }
}

/* Enhanced Hover Effects */
@media (hover: hover) {
    .company-card {
        position: relative;
        overflow: hidden;
    }

    .company-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at center, rgba(255, 214, 90, 0.03) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
    }

    .company-card:hover::after {
        opacity: 1;
    }
}

/* Focus States for Accessibility */
.visit-site-btn:focus {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
}

.visit-site-btn:focus:not(:focus-visible) {
    outline: none;
}

.visit-site-btn:focus-visible {
    outline: 2px solid var(--primary-accent);
    outline-offset: 2px;
}