:root {
    --primary-navy: #0a1628;
    --secondary-navy: #1a2f4d;
    --accent-gold: #c9a962;
    --accent-gold-light: #e8d5a3;
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5a;
    --text-light: #6b6b7b;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(10, 22, 40, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--primary-navy);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}

/* Portfolio Hero Section */
.portfolio-hero {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.75) 0%, rgba(26, 47, 77, 0.8) 100%),
                url('../images/portfolio.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    padding: 80px 40px 60px;
    color: var(--bg-white);
    position: relative;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a962' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
}

.portfolio-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-hero h2 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(36px, 6vw, 52px);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInUp 0.8s ease-out;
}

.portfolio-hero-text {
    font-size: 16px;
    line-height: 1.9;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    max-width: 800px;
    margin: 0 auto;
}

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

/* Portfolio Tabs */
.portfolio-tabs-container {
    background-color: var(--bg-white);
    padding: 30px 40px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
}

.portfolio-tabs {
    max-width: 600px;
    display: flex;
    gap: 0;
}

.tab-button {
    flex: 1;
    padding: 16px 40px;
    background-color: #e5e7eb;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: var(--text-dark);
}

.tab-button.active {
    background-color: var(--primary-navy);
    color: var(--bg-white);
    border-bottom: none;
}

/* Tab Content */
.tab-content {
    display: none;
}

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

.tab-section-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

/* Portfolio Companies Grid */
.portfolio-companies {
    background-color: var(--bg-white);
    padding: 80px 40px;
}

.companies-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.company-card {
    background: var(--bg-white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.company-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.company-status {
    background-color: #d1d5db;
    padding: 12px 20px;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.5px;
}

.company-logo {
    background-color: #ffffff;
    padding: 25px 20px;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e5e7eb;
}

.company-logo img {
    max-width: 100%;
    max-height: 90px;
    object-fit: contain;
    height: auto;
}

.company-name {
    background-color: #f3f4f6;
    padding: 16px;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    text-align: center;
    word-wrap: break-word;
}

@media (max-width: 1024px) {
    .companies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-companies {
        padding: 60px 20px;
    }
    
    .companies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 22, 40, 0.8);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    padding: 60px 50px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-dark);
}

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

.modal-logo {
    margin-bottom: 30px;
}

.modal-logo img {
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
}

#modalDescription {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
    text-align: center;
}

.visit-button {
    display: inline-block;
    padding: 14px 40px;
    background-color: var(--primary-navy);
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.visit-button:hover {
    background-color: var(--secondary-navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 22, 40, 0.3);
}

.company-card {
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@media (max-width: 768px) {
    .team-about {
        min-height: auto;
        padding: 112px 18px 42px;
    }

    .team-about-content {
        max-width: 760px;
    }

    .team-about h2 {
        margin-bottom: 18px;
    }

    .team-about-text {
        font-size: 15px;
        line-height: 1.75;
    }

    .portfolio-companies {
        padding: 52px 18px;
    }

    .companies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .company-status {
        padding: 10px 12px;
        font-size: 10px;
    }

    .company-logo {
        min-height: 112px;
        padding: 18px 14px;
    }

    .company-logo img {
        max-height: 72px;
    }

    .company-name {
        min-height: 58px;
        padding: 14px 12px;
        font-size: 12px;
        line-height: 1.35;
    }

    .modal-content {
        width: min(92vw, 560px);
        padding: 34px 24px 28px;
    }

    #modalDescription {
        font-size: 15px;
        line-height: 1.75;
    }

    .visit-button {
        width: 100%;
        max-width: 260px;
        padding: 13px 24px;
    }
}

@media (max-width: 480px) {
    .team-about {
        padding: 104px 14px 36px;
    }

    .team-about h2 {
        font-size: 28px;
    }

    .team-about-text {
        font-size: 13px;
        line-height: 1.8;
    }

    .portfolio-companies {
        padding: 44px 14px;
    }

    .companies-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .company-card {
        border-radius: 10px;
    }

    .company-logo {
        min-height: 104px;
        padding: 16px 12px;
    }

    .company-name {
        min-height: 0;
        padding: 12px 10px 14px;
        font-size: 11px;
    }

    .modal-content {
        width: calc(100vw - 20px);
        padding: 28px 16px 22px;
        border-radius: 10px;
    }

    .modal-close {
        top: 12px;
        right: 14px;
        font-size: 28px;
    }

    .modal-logo {
        margin-bottom: 20px;
    }

    .modal-logo img {
        max-width: 120px;
        max-height: 72px;
    }

    #modalDescription {
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 22px;
    }

    .visit-button {
        max-width: none;
    }
}
