/* Terminals Page - Ultra Modern Design */

/* Page Header */
.page-header {
    min-height: 60vh;
    background: linear-gradient(135deg, rgba(11, 30, 66, 0.95), rgba(27, 59, 111, 0.9)),
                url('img/terminals-header.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 80px;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.15), transparent 70%);
}

.header-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    animation: fadeInUp 1s ease;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.6;
}

.breadcrumb span {
    color: var(--primary-color);
}

.page-header h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.4rem;
    opacity: 0.9;
}

/* Terminals Overview */
.terminals-overview {
    padding: 6rem 2rem 4rem;
    background: white;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.stat-box {
    background: linear-gradient(135deg, var(--light-gray), white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), #FF8C42);
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), #FF8C42);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    flex-shrink: 0;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Interactive Map Section */
.interactive-map-section {
    padding: 6rem 2rem;
    background: var(--light-gray);
}

.map-container {
    background: white;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.map-header {
    text-align: center;
    margin-bottom: 3rem;
}

.map-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.map-header p {
    font-size: 1.1rem;
    color: #666;
}

/* World Map */
.world-map {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.map-image {
    width: 100%;
    height: auto;
    opacity: 1;
}

/* Terminal Markers */
.terminal-marker {
    position: absolute;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.terminal-marker:hover {
    transform: scale(1.2);
    z-index: 20;
}

.marker-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.6;
    animation: pulse 2s infinite;
}

.marker-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.5);
    left: 10px;
    top: 10px;
    z-index: 2;
}

.marker-label {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-blue);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.terminal-marker:hover .marker-label {
    opacity: 1;
}

.terminal-marker.active .marker-pin {
    background: #FFD700;
    animation: bounce 0.6s ease;
}

/* Marker Positions */
.rotterdam { top: 28%; left: 50.5%; }
.amsterdam { top: 27%; left: 50.3%; }
.antwerp { top: 29%; left: 50.2%; }
.houston { top: 45%; left: 22%; }
.fujairah { top: 42%; left: 66%; }
.jurong { top: 52%; left: 78%; }

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Region Selector */
.region-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.region-btn {
    padding: 1rem 2rem;
    background: var(--light-gray);
    border: 2px solid transparent;
    border-radius: 50px;
    font-weight: 600;
    color: var(--dark-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.region-btn:hover {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.region-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #FF8C42);
    color: white;
    border-color: var(--primary-color);
}

/* Terminal Details Section */
.terminal-details-section {
    padding: 6rem 2rem;
    background: white;
}

.terminal-card {
    margin-bottom: 6rem;
}

.terminal-card:last-child {
    margin-bottom: 0;
}

.terminal-card-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    background: var(--light-gray);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.terminal-card-inner.reverse {
    grid-template-columns: 1.2fr 1fr;
}

.terminal-card-inner.reverse .terminal-image-section {
    order: 2;
}

.terminal-card-inner.reverse .terminal-content-section {
    order: 1;
}

/* Terminal Image Section */
.terminal-image-section {
    position: relative;
    height: 100%;
    min-height: 500px;
}

.terminal-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.terminal-badge {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.terminal-badge i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.terminal-badge span {
    font-weight: 600;
    color: var(--dark-blue);
}

/* Terminal Content Section */
.terminal-content-section {
    padding: 3rem;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.terminal-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark-blue);
}

.terminal-flag {
    font-size: 3rem;
}

.terminal-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2.5rem;
}

/* Terminal Specs */
.terminal-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.spec-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.spec-item strong {
    display: block;
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.spec-item span {
    font-size: 1rem;
    color: var(--dark-blue);
    font-weight: 600;
}

/* Terminal Features */
.terminal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    background: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.feature-tag i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

/* Terminal Button */
.terminal-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-blue));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.terminal-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), #FF8C42);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 8rem 2rem;
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-blue));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1), transparent 50%);
    animation: rotate 20s linear infinite;
}

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

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: white;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid white;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: white;
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Animations */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .terminal-card-inner {
        grid-template-columns: 1fr;
    }

    .terminal-card-inner.reverse {
        grid-template-columns: 1fr;
    }

    .terminal-card-inner.reverse .terminal-image-section,
    .terminal-card-inner.reverse .terminal-content-section {
        order: unset;
    }

    .terminal-image-section {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .world-map {
        padding: 2rem 1rem;
    }

    .marker-label {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .region-selector {
        flex-direction: column;
    }

    .region-btn {
        width: 100%;
        justify-content: center;
    }

    .terminal-specs {
        grid-template-columns: 1fr;
    }

    .terminal-content-section {
        padding: 2rem;
    }

    .terminal-header h2 {
        font-size: 2rem;
    }

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

    .cta-content p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-white, .btn-outline {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}
