/* ============================================
   BARDEEJ LLC - Company Profile Page Styles
   ============================================ */

/* Base Styles */
.profile-page {
    background-color: var(--cream);
    min-height: 100vh;
}

.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Print Only Elements */
.print-only {
    display: none;
}

/* No Print Elements */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Download Button */
.download-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--crimson);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(197, 48, 48, 0.4);
    transition: all 0.3s ease;
    z-index: 100;
}

.download-btn:hover {
    background: var(--crimson-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(197, 48, 48, 0.5);
}

.download-btn svg {
    transition: transform 0.3s ease;
}

.download-btn:hover svg {
    transform: translateY(2px);
}

/* Back Button */
.back-btn {
    position: fixed;
    top: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--white);
    color: var(--navy);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 100;
}

.back-btn:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateX(-3px);
}

/* Cover Page */
.profile-cover {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    margin: -2rem -2rem 2rem -2rem;
    position: relative;
    overflow: hidden;
}

.profile-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

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

.cover-logo {
    width: 150px;
    height: auto;
    margin-bottom: 2rem;
}

.cover-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.cover-divider {
    width: 100px;
    height: 3px;
    background: var(--crimson);
    margin: 0 auto 1.5rem;
}

.cover-subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.cover-year {
    font-size: 1.25rem;
    color: var(--crimson-light);
    font-weight: 600;
}

.cover-footer {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.cover-footer p {
    margin: 0.25rem 0;
}

/* Section Styles */
.profile-section {
    background: var(--white);
    padding: 3rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--navy-dark);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--crimson);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--navy);
}

/* About Content */
.about-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 1rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.info-item {
    padding: 1rem;
    background: var(--cream);
    border-radius: 8px;
    border-left: 3px solid var(--crimson);
}

.info-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-light);
    margin-bottom: 0.25rem;
}

.info-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy-dark);
}

/* Vision & Mission */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.vm-card {
    padding: 2rem;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    border-radius: 12px;
    color: var(--white);
}

.vm-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.75rem;
}

.vm-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--crimson);
}

.vm-card p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.value-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--cream);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    border-radius: 50%;
    color: var(--white);
}

.value-card h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.value-card p {
    font-size: 0.8125rem;
    color: var(--gray);
    line-height: 1.5;
}

/* QHSE Section */
.qhse-section {
    background: linear-gradient(135deg, #f0f4f8 0%, var(--white) 100%);
}

.qhse-intro {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--slate);
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--white);
    border-left: 4px solid var(--crimson);
    border-radius: 0 8px 8px 0;
}

.qhse-content h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--navy-dark);
    margin-bottom: 1rem;
}

.qhse-list {
    list-style: none;
    padding: 0;
}

.qhse-list li {
    position: relative;
    padding: 0.75rem 0 0.75rem 2rem;
    font-size: 0.9375rem;
    color: var(--slate);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.qhse-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--crimson);
    border-radius: 50%;
}

/* Services Detailed */
.services-intro {
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: 2rem;
}

.services-detailed {
    display: grid;
    gap: 2rem;
}

.service-detail {
    padding: 1.5rem;
    background: var(--cream);
    border-radius: 12px;
    border-left: 4px solid var(--crimson);
}

.service-detail h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--navy-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--crimson);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 600;
}

.service-detail ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.service-detail li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--slate);
}

.service-detail li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--crimson);
    font-weight: bold;
}

/* Telecom Subsections */
.telecom-subsections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.telecom-sub h4 {
    font-size: 0.9375rem;
    color: var(--navy);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.telecom-sub ul {
    display: block;
}

/* Projects Table */
.projects-intro {
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: 2rem;
}

.projects-table-wrapper {
    overflow-x: auto;
}

.projects-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.projects-table th,
.projects-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.projects-table th {
    background: var(--navy-dark);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.projects-table th:first-child {
    border-radius: 8px 0 0 0;
}

.projects-table th:last-child {
    border-radius: 0 8px 0 0;
}

.projects-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.projects-table tbody tr:hover {
    background: rgba(197, 48, 48, 0.05);
}

.projects-table td:first-child {
    font-weight: 600;
    color: var(--crimson);
}

.projects-table td:last-child {
    font-weight: 600;
    text-align: right;
}

.projects-table th:last-child {
    text-align: right;
}

.projects-table tfoot {
    background: var(--cream);
}

.projects-table tfoot td {
    padding: 1rem 0.75rem;
    font-size: 1rem;
    border-top: 2px solid var(--navy);
}

.projects-table tfoot td:last-child {
    color: var(--crimson);
    font-size: 1.125rem;
}

/* Gallery */
.gallery-intro {
    font-size: 1rem;
    color: var(--slate);
    margin-bottom: 2rem;
}

.gallery-category {
    margin-bottom: 2rem;
}

.gallery-category h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--navy-dark);
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--crimson);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    font-size: 0.75rem;
    text-align: center;
}

/* Clients Section */
.clients-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.client-category h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--navy-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--crimson);
}

.client-list {
    list-style: none;
    padding: 0;
}

.client-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9375rem;
    color: var(--slate);
}

/* Why Choose Section */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.why-item {
    padding: 1.5rem;
    background: var(--cream);
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
    border-radius: 50%;
    color: var(--white);
}

.why-item h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--navy-dark);
    margin-bottom: 0.5rem;
}

.why-item p {
    font-size: 0.875rem;
    color: var(--gray);
    line-height: 1.5;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: var(--white);
}

.contact-section .section-title {
    color: var(--white);
    border-bottom-color: var(--crimson);
}

.contact-section .section-title::after {
    background: var(--white);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-info-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.contact-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

/* Profile Footer */
.profile-footer {
    text-align: center;
    padding: 2rem;
    color: var(--gray);
    font-size: 0.875rem;
}

/* Page Break */
.page-break-before {
    page-break-before: always;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 768px) {
    .profile-container {
        padding: 1rem;
    }

    .profile-cover {
        margin: -1rem -1rem 1rem -1rem;
        padding: 3rem 1.5rem;
        min-height: 80vh;
    }

    .cover-title {
        font-size: 2.5rem;
        letter-spacing: 0.05em;
    }

    .cover-subtitle {
        font-size: 1rem;
        letter-spacing: 0.15em;
    }

    .profile-section {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail ul {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .download-btn {
        bottom: 1rem;
        right: 1rem;
        padding: 0.875rem 1.25rem;
        font-size: 0.875rem;
    }

    .back-btn {
        top: 1rem;
        left: 1rem;
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }

    .projects-table {
        font-size: 0.75rem;
    }

    .projects-table th,
    .projects-table td {
        padding: 0.5rem;
    }
}

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

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

    .download-btn span {
        display: none;
    }

    .download-btn {
        width: 50px;
        height: 50px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .back-btn span {
        display: none;
    }

    .back-btn {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    @page {
        size: A4;
        margin: 15mm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white !important;
        font-size: 10pt;
    }

    .profile-page {
        background: white !important;
    }

    .profile-container {
        max-width: 100%;
        padding: 0;
    }

    .print-only {
        display: flex !important;
        align-items: center;
        gap: 1rem;
        padding: 1rem 0;
        margin-bottom: 1rem;
        border-bottom: 2px solid var(--navy);
    }

    .print-logo {
        width: 60px;
        height: auto;
    }

    .print-header-text h1 {
        font-size: 18pt;
        color: var(--navy-dark);
        margin: 0;
    }

    .print-header-text p {
        font-size: 10pt;
        color: var(--gray);
        margin: 0;
    }

    .profile-cover {
        min-height: auto !important;
        padding: 3rem 2rem !important;
        margin: 0 0 2rem 0 !important;
        background: var(--navy-dark) !important;
        page-break-after: always;
    }

    .cover-footer {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 2rem;
    }

    .profile-section {
        box-shadow: none !important;
        border: 1px solid #ddd;
        page-break-inside: avoid;
        margin-bottom: 1rem;
        padding: 1.5rem;
    }

    .section-title {
        font-size: 14pt;
    }

    .vm-card {
        background: var(--navy) !important;
    }

    .value-card,
    .why-item {
        background: #f5f5f5 !important;
        box-shadow: none !important;
    }

    .value-icon,
    .why-icon {
        background: var(--navy) !important;
    }

    .gallery-item {
        page-break-inside: avoid;
    }

    .gallery-item span {
        background: rgba(0,0,0,0.7) !important;
    }

    .projects-table th {
        background: var(--navy-dark) !important;
    }

    .contact-section {
        background: var(--navy) !important;
    }

    .page-break-before {
        page-break-before: always;
    }

    /* Hide interactive elements */
    .value-card:hover,
    .why-item:hover,
    .gallery-item:hover img {
        transform: none !important;
        box-shadow: none !important;
    }
}
