/* ========================================
   Pages Stylesheet - Additional Styles
   ======================================== */

/* Page Hero (Inner Pages) */
.page-hero {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 90px;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 29, 49, 0.9) 0%, rgba(139, 0, 0, 0.7) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.page-hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
}

.breadcrumb {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: var(--white);
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb span {
    margin: 0 8px;
}

/* Content Section */
.content-section {
    padding: 80px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
}

.content-main h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 24px;
}

.content-main .lead {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.6;
}

.content-main p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

/* Info Boxes */
.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.info-box {
    background: var(--light-gray);
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.info-box i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.info-box h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.info-box p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Sidebar */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
}

.sidebar-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
}

.fact-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.fact-list li:last-child {
    border-bottom: none;
}

.fact-list strong {
    color: var(--text-dark);
}

.sector-list li {
    margin-bottom: 12px;
}

.sector-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-base);
}

.sector-list li a:hover {
    background: var(--primary-color);
    color: var(--white);
}

.sector-list li a i {
    color: var(--primary-color);
    width: 20px;
}

.sector-list li a:hover i {
    color: var(--white);
}

/* Timeline (History Page) */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.timeline-content {
    width: 45%;
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.timeline-year {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
}

.timeline-content h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

/* Team Grid (Management Page) */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    text-align: center;
    border: 1px solid var(--border-color);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.team-image {
    height: 280px;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.team-card:hover .team-image img {
    transform: scale(1.05);
}

.team-info {
    padding: 24px;
}

.team-info h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.team-info .position {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.team-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-gray);
    color: var(--text-dark);
    transition: var(--transition-base);
}

.team-social a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Office Cards (Offices Page) */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.office-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.office-map {
    height: 200px;
    background: var(--light-gray);
}

.office-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.office-info {
    padding: 30px;
}

.office-info h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.office-details li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
}

.office-details li i {
    color: var(--primary-color);
    width: 20px;
    margin-top: 4px;
    flex-shrink: 0;
}

/* Jobs Grid (Careers Page) */
.jobs-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-base);
}

.job-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.job-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.job-meta {
    display: flex;
    gap: 20px;
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-color);
}

.job-meta i {
    color: var(--primary-color);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    transition: var(--transition-base);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(216, 0, 39, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-info-card i {
    font-size: 24px;
    color: var(--primary-color);
    width: 45px;
    flex-shrink: 0;
}

.contact-info-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 14px;
    color: var(--text-color);
}

/* Contact Form Titles */
.contact-form-title {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 28px;
    font-weight: 700;
}

.contact-form-subtitle {
    margin-bottom: 32px;
    color: var(--text-color);
}

/* Form Status Messages */
.form-status {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.5;
}

.form-status i {
    margin-right: 8px;
}

.form-status ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.form-status ul li {
    margin-bottom: 5px;
}

.form-status-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.form-status-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Form Button Loading State */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Contact Social Links */
.contact-social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.contact-social-links a {
    color: var(--primary-color);
    font-size: 16px;
    transition: var(--transition-base);
}

.contact-social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Map Section */
.map-section {
    height: 400px;
    width: 100%;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Company Detail Page */
.company-hero {
    position: relative;
    height: 500px;
    margin-top: 90px;
}

.company-hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 60px;
}

.company-hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.company-hero-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: 32px;
}

.company-services {
    padding: 80px 0;
    background: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

.service-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 15px;
    color: var(--text-color);
    margin: 0;
}

/* Companies Overview Grid */
.companies-overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.company-overview-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    transition: var(--transition-base);
}

.company-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.company-overview-image {
    width: 250px;
    flex-shrink: 0;
}

.company-overview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-overview-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.company-overview-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.company-overview-content p {
    flex: 1;
    margin-bottom: 20px;
}

/* Profile Page Stats */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.profile-stat {
    text-align: center;
    padding: 30px;
    background: var(--light-gray);
    border-radius: var(--radius-lg);
}

.profile-stat .number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.profile-stat .label {
    font-size: 14px;
    color: var(--text-color);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .info-boxes {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
    }

    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }

    .companies-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 300px;
        margin-top: 70px;
    }

    .page-hero-content h1 {
        font-size: 32px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .offices-grid {
        grid-template-columns: 1fr;
    }

    .job-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .company-overview-card {
        flex-direction: column;
    }

    .company-overview-image {
        width: 100%;
        height: 200px;
    }

    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Enhanced mobile spacing */
    .content-section {
        padding: 50px 0;
    }
    
    .content-main h2 {
        font-size: 26px;
    }
    
    .content-main .lead {
        font-size: 17px;
    }
    
    /* Better touch targets */
    .sector-list li a {
        padding: 16px 18px;
        font-size: 15px;
    }
    
    /* Sidebar cards */
    .sidebar-card {
        padding: 24px;
    }
    
    /* Contact form */
    .contact-form {
        padding: 20px; /* Reduced padding further */
        width: 100%;
        max-width: 100%;
        overflow: hidden; /* Prevent overflow */
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        max-width: 100%;
        box-sizing: border-box; /* Ensure padding doesn't add to width */
    }
    
    /* Ensure container doesn't cause overflow */
    .contact-grid {
        width: 100%;
        max-width: 100%;
        gap: 40px;
    }
    /* Company hero */
    .company-hero {
        height: 400px;
        margin-top: 70px;
    }
    
    .company-hero-content {
        padding: 0 20px;
    }
    
    .company-hero-content h1 {
        font-size: 32px;
    }
    
    .company-hero-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 250px;
    }
    
    .page-hero-content h1 {
        font-size: 26px;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px;
        padding: 20px;
    }
    
    .timeline-content h4 {
        font-size: 18px;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .team-image {
        height: 240px;
    }
    
    .company-hero {
        height: 350px;
    }
    
    .company-hero-content h1 {
        font-size: 26px;
    }
}

/* Extra small mobile devices (Galaxy Z Fold, etc.) */
@media (max-width: 360px) {
    /* Content section - reduce padding for small screens */
    .content-section {
        padding: 30px 0;
    }
    
    .content-section .container {
        padding: 0 12px;
    }
    
    /* Contact form specific fixes */
    .contact-form {
        padding: 16px;
        margin: 0;
        border-radius: var(--radius-md);
    }
    
    .contact-form h2 {
        font-size: 22px !important;
        margin-bottom: 6px !important;
    }
    
    .contact-form > p {
        font-size: 14px;
        margin-bottom: 24px !important;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px;
        font-size: 15px;
        width: 100%;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    /* Contact grid - ensure full width usage */
    .contact-grid {
        gap: 30px;
    }
    
    /* Contact info cards */
    .contact-info-cards {
        gap: 12px;
    }
    
    .contact-info-card {
        padding: 16px;
        gap: 14px;
    }
    
    .contact-info-card i {
        font-size: 22px;
        width: 36px;
    }
    
    .contact-info-card h4 {
        font-size: 14px;
    }
    
    .contact-info-card p,
    .contact-info-card a {
        font-size: 13px;
    }
    
    /* Button sizing */
    .btn-lg {
        padding: 14px 28px;
        font-size: 14px;
        width: 100%;
    }
    
    /* Page hero adjustments */
    .page-hero {
        height: 200px;
    }
    
    .page-hero-content h1 {
        font-size: 22px;
    }
}

/* ========================================
   DARK MODE SUPPORT FOR PAGES
   ======================================== */
[data-theme="dark"] .page-hero-overlay {
    background: linear-gradient(135deg, rgba(13, 15, 26, 0.95) 0%, rgba(139, 0, 0, 0.7) 100%);
}

[data-theme="dark"] .content-section {
    background: var(--bg-primary);
}

[data-theme="dark"] .content-main h2,
[data-theme="dark"] .content-main .lead {
    color: var(--text-primary);
}

[data-theme="dark"] .info-box {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .info-box h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .sidebar-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .sidebar-card h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .fact-list li {
    border-color: var(--border-color);
}

[data-theme="dark"] .fact-list strong {
    color: var(--text-primary);
}

[data-theme="dark"] .sector-list li a {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .sector-list li a:hover {
    background: var(--accent-primary);
}

[data-theme="dark"] .timeline-content {
    background: var(--card-bg);
}

[data-theme="dark"] .timeline-content h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .team-card {
    background: var(--card-bg);
}

[data-theme="dark"] .team-info h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .team-social a {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .office-card {
    background: var(--card-bg);
}

[data-theme="dark"] .office-info h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .job-card {
    background: var(--card-bg);
    border-color: var(--border-color);
}

[data-theme="dark"] .job-info h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .contact-form {
    background: var(--card-bg);
}

[data-theme="dark"] .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .contact-info-card {
    background: var(--card-bg);
}

[data-theme="dark"] .contact-info-card h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .contact-form-title {
    color: var(--text-primary);
}

[data-theme="dark"] .contact-form-subtitle {
    color: var(--text-secondary);
}

[data-theme="dark"] .contact-social-links a {
    color: var(--accent-primary);
}

[data-theme="dark"] .contact-social-links a:hover {
    color: var(--accent-secondary);
}

[data-theme="dark"] .company-services {
    background: var(--bg-secondary);
}

[data-theme="dark"] .service-card {
    background: var(--card-bg);
}

[data-theme="dark"] .service-card h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .company-overview-card {
    background: var(--card-bg);
}

[data-theme="dark"] .company-overview-content h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .profile-stat {
    background: var(--bg-secondary);
}

/* ========================================
   ENHANCED VISUAL EFFECTS FOR PAGES
   ======================================== */
/* Animated gradient border for cards */
.service-card,
.team-card,
.office-card,
.job-card {
    position: relative;
    transition: all 0.4s ease;
}

.service-card::before,
.team-card::before,
.office-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, transparent, var(--accent-primary), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::before,
.team-card:hover::before,
.office-card:hover::before {
    opacity: 1;
}

/* Smooth image zoom on hover */
.team-image img,
.company-overview-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-image img,
.company-overview-card:hover .company-overview-image img {
    transform: scale(1.08);
}

/* Icon pulse animation */
.info-box i,
.service-card i {
    transition: all 0.3s ease;
}

.info-box:hover i,
.service-card:hover i {
    transform: scale(1.15);
    text-shadow: 0 0 20px rgba(216, 0, 39, 0.4);
}

/* Form focus animations */
.form-group {
    position: relative;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(216, 0, 39, 0.15);
}

/* Job card hover effect */
.job-card {
    border-left: 4px solid transparent;
}

.job-card:hover {
    border-left-color: var(--accent-primary);
    transform: translateX(8px);
}

/* Contact info card hover */
.contact-info-card {
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-info-card:hover i {
    transform: scale(1.2);
}

/* Timeline animation */
.timeline-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.timeline-item.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   FULLSCREEN COMPANIES SHOWCASE
   Premium immersive slider with scroll-lock
   ======================================== */
.fullscreen-companies-section {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    min-height: min(600px, 100vh);
    overflow: hidden;
    background: var(--bg-primary, #0d0f1a);
}

/* When locked, prevent any scrolling past */
.fullscreen-companies-section.is-locked {
    /* Section stays in place */
}

/* Section Header */
.fullscreen-header {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    text-align: center;
    z-index: 100;
}

.fullscreen-header .section-label {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.fullscreen-header .section-title {
    color: #fff;
    font-size: clamp(20px, 3vw, 28px);
    margin: 0;
}

.fullscreen-header .section-title .highlight {
    color: var(--accent-primary, #D80027);
}

/* Progress Bar */
.fullscreen-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 100;
}

.fullscreen-progress .progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary, #D80027), #ff4d6d);
    width: 16.66%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation Dots */
.fullscreen-nav-dots {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
}

.fullscreen-companies-section .nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
}

.fullscreen-companies-section .nav-dot span {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.fullscreen-companies-section .nav-dot:hover span {
    opacity: 1;
    right: 35px;
}

.fullscreen-companies-section .nav-dot:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.fullscreen-companies-section .nav-dot.active {
    background: var(--accent-primary, #D80027);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(216, 0, 39, 0.5);
}

.fullscreen-companies-section .nav-dot.active span {
    opacity: 1;
    color: #fff;
}

/* Arrow Navigation */
.fullscreen-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-nav-arrow.prev {
    left: 40px;
}

.fullscreen-nav-arrow.next {
    right: 120px;
}

.fullscreen-nav-arrow:hover {
    background: var(--accent-primary, #D80027);
    border-color: var(--accent-primary, #D80027);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 40px rgba(216, 0, 39, 0.4);
}

.fullscreen-nav-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Slides Wrapper */
.fullscreen-slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.fullscreen-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.fullscreen-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

.fullscreen-slide.prev {
    opacity: 0;
    transform: translateX(-100%);
}

.fullscreen-slide.next {
    opacity: 0;
    transform: translateX(100%);
}

/* Slide Background */
.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease-out;
}

.fullscreen-slide.active .slide-background img {
    transform: scale(1.1);
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(13, 15, 26, 0.85) 0%,
        rgba(13, 15, 26, 0.6) 50%,
        rgba(216, 0, 39, 0.3) 100%
    );
}

/* Slide Content */
.slide-content {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 600px;
    z-index: 10;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.fullscreen-slide.active .slide-content {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.fullscreen-slide.prev .slide-content,
.fullscreen-slide.next .slide-content {
    transform: translateY(-50%) translateX(-50px);
}

.slide-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-primary, #D80027), #ff4d6d);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    margin-bottom: 30px;
    box-shadow: 0 20px 50px rgba(216, 0, 39, 0.4);
    transition: transform 0.4s ease;
}

.fullscreen-slide:hover .slide-icon {
    transform: scale(1.1) rotate(5deg);
}

.slide-number {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary, #D80027);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.slide-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.slide-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--accent-primary, #D80027), #ff1a4d);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(216, 0, 39, 0.4);
    position: relative;
    overflow: hidden;
}

.slide-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.slide-cta:hover::before {
    left: 100%;
}

.slide-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 60px rgba(216, 0, 39, 0.5);
}

.slide-cta i {
    transition: transform 0.3s ease;
}

.slide-cta:hover i {
    transform: translateX(6px);
}

/* Scroll Hint */
.fullscreen-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    z-index: 100;
    animation: fadeInUp 1s ease 0.5s both;
}

.fullscreen-scroll-hint span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-icon {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .fullscreen-companies-section {
    background: var(--bg-primary);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .fullscreen-nav-arrow.next {
        right: 100px;
    }
    
    .slide-content {
        left: 8%;
        max-width: 550px;
    }
}

@media (max-width: 992px) {
    .fullscreen-nav-dots {
        right: 20px;
    }
    
    .nav-dot span {
        display: none;
    }
    
    .fullscreen-nav-arrow {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
    
    .fullscreen-nav-arrow.prev {
        left: 20px;
    }
    
    .fullscreen-nav-arrow.next {
        right: 70px;
    }
    
    .slide-content {
        left: 6%;
        right: 15%;
        max-width: none;
    }
    
    .slide-title {
        font-size: clamp(28px, 4vw, 44px);
    }
    
    .slide-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    /* On mobile, switch from scroll-locked fullscreen slider to stacked cards */
    .fullscreen-companies-section {
        height: auto;
        min-height: 0;
        overflow: visible;
        padding: 40px 0 60px;
    }

    .fullscreen-progress,
    .fullscreen-nav-dots,
    .fullscreen-nav-arrow,
    .fullscreen-scroll-hint {
        display: none;
    }

    .fullscreen-header {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        width: auto;
        margin: 0 auto 24px;
        padding: 0 20px;
        text-align: center;
    }

    .fullscreen-header .section-label {
        font-size: 11px;
    }

    .fullscreen-header .section-title {
        font-size: 18px;
    }

    .fullscreen-slides-wrapper {
        height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }

    .fullscreen-slide,
    .fullscreen-slide.active,
    .fullscreen-slide.prev,
    .fullscreen-slide.next {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        opacity: 1;
        visibility: visible;
        transform: none !important;
        transition: none;
        z-index: 1;
        border-radius: 20px;
        overflow: hidden;
        background: var(--bg-primary, #0d0f1a);
        border: 1px solid rgba(255, 255, 255, 0.12);
    }

    .slide-background {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: 220px;
    }

    .slide-background img {
        height: 100%;
        transform: none !important;
    }

    .slide-content,
    .fullscreen-slide.active .slide-content,
    .fullscreen-slide.prev .slide-content,
    .fullscreen-slide.next .slide-content {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        transform: none !important;
        max-width: none;
        padding: 20px 20px 24px;
        opacity: 1;
        transition: none;
        background: var(--bg-primary, #0d0f1a);
    }

    .slide-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 18px;
        border-radius: 16px;
    }

    .slide-number {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .slide-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .slide-description {
        font-size: 14px;
        margin-bottom: 18px;
        max-width: none;
        line-height: 1.6;
    }

    .slide-cta {
        padding: 12px 22px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .slide-background {
        height: 200px;
    }

    .slide-icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
        border-radius: 14px;
    }

    .slide-title {
        font-size: 22px;
    }

    .slide-description {
        font-size: 13px;
    }
}
