/* ===========================
   CSS RESET & BASE STYLES
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow-x: hidden;
}

/* Smooth scrolling for all pages */
* {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   SMOOTH ANIMATIONS
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===========================
   NAVIGATION BAR - ELEGANT & ANIMATED
   =========================== */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    animation: slideInDown 0.6s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar {
    padding: 1.2rem 0;
    transition: padding 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInLeft 0.8s ease-out;
}

.navbar-brand .logo-image {
    height: 50px;
    width: auto;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 8px rgba(255, 255, 255, 0.2));
}

.navbar-brand .logo-image:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(255, 193, 7, 0.4));
}

.navbar-brand .logo {
    color: #000000;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: none;
}

.navbar-brand .logo:hover {
    color: #3b82f6;
    transform: translateX(5px);
}

.navbar-brand .logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.4s ease;
}

.navbar-brand .logo:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.navbar-toggle:hover {
    transform: scale(1.1);
}

.navbar-toggle span {
    width: 28px;
    height: 3px;
    background: #1d1d1f;
    margin: 4px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    box-shadow: none;
}

.navbar-toggle:hover span {
    background: #3b82f6;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

.navbar-menu li {
    position: relative;
}

.navbar-menu li a {
    color: #000000;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.7rem 1.2rem;
    display: block;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.navbar-menu li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), transparent);
    transition: left 0.5s ease;
}

.navbar-menu li a:hover::before {
    left: 100%;
}

.navbar-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transform: translateX(-50%);
    transition: width 0.4s ease;
}

.navbar-menu li a:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
}

.navbar-menu li a:hover::after {
    width: 80%;
}

/* ===========================
   MAIN CONTENT SECTIONS - STUNNING DESIGN
   =========================== */
main {
    min-height: calc(100vh - 200px);
}

.hero-section {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5f8d 50%, #1e4d7b 100%);
    color: #fff;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(248, 249, 250, 0.1));
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    line-height: 1.2;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.4rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.4s both;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
}

.content-section {
    padding: 5rem 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100px;
    width: 300px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 95, 141, 0.03), transparent);
    animation: shimmer 3s infinite;
}

.content-section:nth-child(even) {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.content-section h2 {
    font-size: 2.8rem;
    color: #1a3a5c;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 700;
    position: relative;
    display: block;
    animation: fadeInUp 0.6s ease-out;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #ff9800, #ffc107);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255, 193, 7, 0.4);
}

.content-section h3 {
    font-size: 1.8rem;
    color: #2c5f8d;
    margin-bottom: 1.2rem;
    margin-top: 2rem;
    font-weight: 600;
    position: relative;
    padding-left: 20px;
    animation: slideInLeft 0.6s ease-out;
}

.content-section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: linear-gradient(180deg, #ffc107, #ff9800);
    border-radius: 3px;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
    color: #444;
    animation: fadeInUp 0.6s ease-out;
    text-align: justify;
}

.content-section ul {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.content-section li {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 0.8rem;
    color: #555;
    position: relative;
    padding-left: 10px;
    animation: fadeInUp 0.6s ease-out;
}

.content-section li::before {
    content: '▸';
    position: absolute;
    left: -15px;
    color: #ffc107;
    font-weight: bold;
}

/* ===========================
   GRID LAYOUTS - BEAUTIFUL & ANIMATED
   =========================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin: 3rem 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 3rem 0;
}

.card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(26, 58, 92, 0.1);
    animation: scaleIn 0.6s ease-out;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ffc107, #ff9800, #2c5f8d, #1a3a5c);
    border-radius: 20px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    animation: pulse 3s ease-in-out infinite;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(26, 58, 92, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card:hover::after {
    opacity: 0.3;
}

.card h3 {
    color: #1a3a5c;
    margin-bottom: 1.2rem;
    margin-top: 0;
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
    padding-left: 0;
    transition: color 0.3s ease;
}

.card h3::before {
    display: none;
}

.card:hover h3 {
    color: #2c5f8d;
}

.card p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}

.card ul {
    margin-left: 1.5rem;
}

/* ===========================
   FOOTER - ELEGANT & MODERN
   =========================== */
footer {
    background: linear-gradient(135deg, #1a3a5c 0%, #0f2642 100%);
    color: #fff;
    padding: 4rem 0 1.5rem;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffc107, #ff9800, #ffc107);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.footer-section h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #ffc107;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #ffc107, transparent);
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #ffc107;
    font-weight: 600;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.8;
    font-size: 1rem;
    color: #e0e0e0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out 0.5s both;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.95rem;
    color: #b0b0b0;
}

/* ===========================
   RESPONSIVE DESIGN - ENHANCED
   =========================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 58, 92, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .navbar-menu.active {
        max-height: 500px;
    }

    .navbar-menu li {
        text-align: center;
        padding: 0.5rem 0;
        opacity: 0;
        transform: translateY(-20px);
        animation: fadeInUp 0.3s ease-out forwards;
    }

    .navbar-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .navbar-menu.active li:nth-child(2) { animation-delay: 0.15s; }
    .navbar-menu.active li:nth-child(3) { animation-delay: 0.2s; }
    .navbar-menu.active li:nth-child(4) { animation-delay: 0.25s; }
    .navbar-menu.active li:nth-child(5) { animation-delay: 0.3s; }
    .navbar-menu.active li:nth-child(6) { animation-delay: 0.35s; }

    .navbar-menu li a {
        display: block;
        padding: 1.2rem;
        margin: 0 1rem;
        border-radius: 10px;
    }

    .navbar-brand .logo {
        font-size: 1.2rem;
    }

    .navbar-brand .logo-image {
        height: 40px;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .content-section h2 {
        font-size: 2.2rem;
    }

    .content-section h3 {
        font-size: 1.5rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .card {
        padding: 2rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 15px;
    }

    .navbar-brand .logo {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .navbar-brand .logo-image {
        height: 35px;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .content-section {
        padding: 2.5rem 0;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .content-section h3 {
        font-size: 1.3rem;
    }

    .card {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .card h3 {
        font-size: 1.4rem;
    }

    .grid-2,
    .grid-3 {
        gap: 1.5rem;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-section h1 {
        font-size: 4rem;
    }

    .content-section h2 {
        font-size: 3rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
}

/* Print styles */
@media print {
    header, footer {
        display: none;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ========================================
   GLOBAL REACH INTERACTIVE MAP
   ======================================== */

.global-reach-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
}

.global-reach-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.15rem;
    color: #64748b;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Map Legend */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 3;
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid #e2e8f0;
}

.map-legend-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.map-legend-item.highlighted {
    background: #eff6ff;
    border-color: #3b82f6;
}

.map-legend-item.active {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
}

.legend-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.legend-marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}

.office-marker {
    background: #dc2626;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
}

.partnership-marker {
    background: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.project-marker {
    background: #16a34a;
    box-shadow: 0 0 15px rgba(22, 163, 74, 0.4);
}

.legend-text {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    color: #1e293b;
}

/* Map Wrapper */
.global-map-wrapper {
    background: white;
    border-radius: 16px;
    padding: 60px 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.global-map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626 0%, #2563eb 50%, #16a34a 100%);
}

/* Map Container */
.global-map-container {
    position: relative;
    width: 100%;
    padding-bottom: 50%; /* 2:1 aspect ratio */
    background: #fafbfc;
    border-radius: 12px;
    overflow: visible;
    border: 1px solid #e8edf2;
}

.world-map-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.world-map-svg path {
    transition: all 0.2s ease;
}

.world-map-svg path:hover {
    fill: rgba(59, 130, 246, 0.08);
}

/* Connection Lines Animation */
.connection-line {
    transition: stroke-dashoffset 1.5s ease-in-out;
}

/* Map Markers */
.map-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s ease;
}

.map-marker:hover {
    z-index: 20;
    transform: translate(-50%, -50%) scale(1.15);
}

.map-marker.active {
    z-index: 20;
}

.map-marker.highlighted {
    z-index: 15;
}

/* Marker Pulse Animation - Subtle and Professional */
.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
    pointer-events: none;
}

.map-marker:hover .marker-pulse {
    animation: subtlePulse 1.5s ease-out;
}

.map-marker-office .marker-pulse {
    color: #dc2626;
}

.map-marker-partnership .marker-pulse {
    color: #2563eb;
}

.map-marker-project .marker-pulse {
    color: #16a34a;
}

@keyframes subtlePulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Marker Pin */
.marker-pin {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
    transition: all 0.2s ease;
}

.map-marker:hover .marker-pin {
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.25));
}

/* Marker Label */
.marker-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    padding: 8px 16px;
    background: white;
    color: #1e293b;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.marker-label.permanent-label {
    opacity: 1;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    font-size: 0.85rem;
    padding: 6px 14px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    font-weight: 700;
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.map-marker:hover .marker-label {
    opacity: 1;
    margin-top: 12px;
}

.map-marker:hover .marker-label.permanent-label {
    background: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateX(-50%) scale(1.05);
}

.map-marker-office .marker-label {
    border-color: #dc2626;
}

.map-marker-partnership .marker-label {
    border-color: #2563eb;
}

.map-marker-project .marker-label {
    border-color: #16a34a;
}

.map-marker.headquarters .marker-label {
    background: #1e3a8a;
    color: white;
    border-color: #1e3a8a;
    font-size: 0.9rem;
    padding: 9px 18px;
    font-weight: 700;
}

.map-marker.headquarters .marker-label.permanent-label {
    background: #1e3a8a;
    opacity: 1;
}

.map-marker.headquarters .marker-label::after {
    content: ' HQ';
    font-size: 0.75rem;
    opacity: 0.9;
    margin-left: 4px;
}

/* Color-coded permanent labels */
.map-marker-office .marker-label.permanent-label {
    border-left: 3px solid #dc2626;
}

.map-marker-partnership .marker-label.permanent-label {
    border-left: 3px solid #2563eb;
}

.map-marker-project .marker-label.permanent-label {
    border-left: 3px solid #16a34a;
}

/* Logo Watermark */
.map-logo-watermark {
    position: absolute;
    bottom: 25px;
    right: 35px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

.map-logo-watermark img {
    width: 100px;
    height: auto;
    filter: grayscale(100%);
}



/* Responsive Design */
@media (max-width: 1024px) {
    .global-reach-section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .map-legend {
        gap: 20px;
    }

    .map-legend-item {
        padding: 10px 20px;
        gap: 10px;
    }

    .global-map-wrapper {
        padding: 30px;
    }

    .marker-label {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .map-marker.headquarters .marker-label {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}

@media (max-width: 768px) {
    .global-reach-section {
        padding: 40px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .map-legend {
        gap: 15px;
    }

    .map-legend-item {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .legend-marker {
        width: 16px;
        height: 16px;
    }

    .legend-marker::before {
        width: 8px;
        height: 8px;
    }

    .global-map-wrapper {
        padding: 20px;
        border-radius: 16px;
    }

    .global-map-container {
        padding-bottom: 60%; /* Slightly taller on mobile */
    }

    .map-marker {
        transform: translate(-50%, -50%) scale(0.85);
    }

    .map-marker:hover {
        transform: translate(-50%, -50%) scale(1);
    }

    .marker-pulse {
        width: 30px;
        height: 30px;
    }

    .marker-label {
        font-size: 0.7rem;
        padding: 4px 10px;
        margin-top: 6px;
    }

    .map-marker.headquarters .marker-label {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .map-logo-watermark {
        bottom: 20px;
        right: 20px;
    }

    .map-logo-watermark img {
        width: 80px;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.75rem;
    }

    .map-legend {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .map-legend-item {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .global-map-wrapper {
        padding: 15px;
    }

    .global-map-container {
        padding-bottom: 70%;
    }

    .map-marker {
        transform: translate(-50%, -50%) scale(0.7);
    }

    .map-marker:hover {
        transform: translate(-50%, -50%) scale(0.9);
    }

    .marker-label {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

/* Print Styles */
@media print {
    .global-reach-section {
        background: white;
    }

    .map-legend-item {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .global-map-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .marker-pulse {
        display: none;
    }

    .marker-label {
        opacity: 1 !important;
        transform: translateX(-50%) translateY(4px) !important;
    }
}

/* ==========================================
   PROJECTS PAGE - ANIMATED SECTION ICONS
   ========================================== */

/* Notable Projects Overview */
.notable-overview {
    text-align: center;
    margin-bottom: 4rem;
}

.notable-overview h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 700;
    color: #1e3a8a;
}

.notable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.notable-item {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.notable-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.notable-item h3 {
    font-size: 1.25rem;
    color: #1e3a8a;
    margin-top: 1.5rem;
    font-weight: 600;
}

.notable-icon {
    width: 120px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notable-icon svg {
    width: 100%;
    height: 100%;
}

/* Rail Icon Animation */
.rail-icon .train-body {
    fill: #1e3a8a;
}

.rail-icon .train-window {
    fill: #60a5fa;
}

.rail-icon .train-wheel {
    fill: #475569;
    transform-origin: center;
}

.rail-icon .train-track {
    stroke: #94a3b8;
    stroke-width: 1.5;
    fill: none;
}

/* Truck Icon Animation */
.truck-icon .truck-cabin {
    fill: #dc2626;
}

.truck-icon .truck-cargo {
    fill: #ef4444;
}

.truck-icon .truck-window {
    fill: #60a5fa;
}

.truck-icon .truck-wheel {
    fill: #1f2937;
    transform-origin: center;
}

.truck-icon .truck-detail {
    stroke: #dc2626;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
}

/* Business Icon Animation */
.business-icon .building {
    fill: #2563eb;
}

.business-icon .window-small {
    fill: #fbbf24;
}

.business-icon .connection-line {
    stroke: #3b82f6;
    stroke-width: 2;
    stroke-dasharray: 4, 4;
}

/* Section Headers with Icons */
.section-header.with-icon {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.header-icon-wrapper {
    width: 140px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-icon {
    width: 100%;
    height: 100%;
}

/* Rail Header Icon Animation */
.rail-header-icon .train-body-large {
    fill: #1e3a8a;
}

.rail-header-icon .train-window-large {
    fill: #60a5fa;
}

.rail-header-icon .train-wheel-large {
    fill: #475569;
    transform-origin: center;
}

.rail-header-icon .speed-line {
    stroke: #94a3b8;
    stroke-width: 2;
    stroke-linecap: round;
}

/* Truck Header Icon Animation */
.truck-header-icon .truck-cabin-large {
    fill: #dc2626;
}

.truck-header-icon .truck-cargo-large {
    fill: #ef4444;
}

.truck-header-icon .truck-window-large {
    fill: #60a5fa;
}

.truck-header-icon .truck-wheel-large {
    fill: #1f2937;
    transform-origin: center;
}

.truck-header-icon .truck-detail-large {
    stroke: #dc2626;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}

/* Business Header Icon Animation */
.business-header-icon .building-large-1 {
    fill: #1e3a8a;
}

.business-header-icon .building-large-2 {
    fill: #2563eb;
}

.business-header-icon .window-large {
    fill: #fbbf24;
}

.business-header-icon .connection-line-large {
    stroke: #3b82f6;
    stroke-width: 2;
}

/* Responsive Design for Project Icons */
@media (max-width: 768px) {
    .notable-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-header.with-icon {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 1.5rem;
    }

    .header-icon-wrapper {
        width: 120px;
        height: 60px;
    }

    .notable-overview h2 {
        font-size: 2rem;
    }
}

/* ===============================================
   ANIMATED BACKGROUND HEADERS FOR PROJECTS PAGE
   =============================================== */

.animated-bg-header {
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.95) 0%, rgba(44, 95, 141, 0.98) 100%);
    margin-bottom: 3rem;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-size: cover;
    background-position: 0% center;
    background-repeat: repeat-x;
    opacity: 0.4;
    z-index: 1;
    will-change: transform;
    transition: transform 0.1s linear;
}

.railway-bg {
    background-image: url('/images/railway.png');
}

.lori-bg {
    background-image: url('/images/lori.png');
}

.animated-bg-header .header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.animated-bg-header .section-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffc107;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.animated-bg-header h2 {
    font-size: 2.8rem;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.animated-bg-header h2::after {
    display: none;
}

/* ===============================================
   SECTION COLOR VARIATIONS FOR UI/UX
   =============================================== */

/* Rail Section - Deep Blue */
.rail-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.rail-section .card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-left: 4px solid #0284c7;
}

.rail-section .card:hover {
    box-shadow: 0 20px 60px rgba(2, 132, 199, 0.25);
}

/* Vehicle Section - Warm Orange/Red */
.vehicle-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.vehicle-section .card {
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border-left: 4px solid #ea580c;
}

.vehicle-section .card:hover {
    box-shadow: 0 20px 60px rgba(234, 88, 12, 0.25);
}

/* Business Section - Professional Green */
.business-section {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.business-section .card {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
    border-left: 4px solid #059669;
}

.business-section .card:hover {
    box-shadow: 0 20px 60px rgba(5, 150, 105, 0.25);
}

/* Offices Section */
.offices-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.offices-section .card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-left: 4px solid #3b82f6;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.offices-section .card:hover {
    transform: translateY(0) scale(1);\n    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);\n    border-left-width: 6px;\n}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
}

.contact-card {
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%) !important;
    border-left: 4px solid #4f46e5;
}

.contact-card a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-card a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Location Benefits Section */
.location-benefits-section {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
}

.location-benefits-section .card {
    background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%);
    border-left: 4px solid #ca8a04;
}

/* ===============================================
   GLOBE MAP BACKGROUND - CLEAN & MODERN
   =============================================== */

.world-map-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/globe map.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
    filter: brightness(0.95) contrast(1.1) saturate(0.9);
}

/* Update map container for cleaner look */
.global-map-container {
    position: relative;
    width: 100%;
    padding-bottom: 50%;
    background: #f8fafb;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===============================================
   ENHANCED RESPONSIVE DESIGN
   =============================================== */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .animated-bg-header {
        min-height: 150px;
        padding: 2rem 1.5rem;
    }

    .animated-bg-header h2 {
        font-size: 2.2rem;
    }

    .animated-bg-header .section-number {
        font-size: 1rem;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 20px;
    }

    .hero-section {
        padding: 4rem 0;
    }

    .hero-section h1 {
        font-size: 2.5rem;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 1.1rem;
    }

    .content-section {
        padding: 3rem 0;
    }

    .content-section h2 {
        font-size: 2rem;
    }

    .animated-bg-header {
        min-height: 120px;
        padding: 1.5rem 1rem;
        border-radius: 15px;
        margin-bottom: 2rem;
    }

    .animated-bg-header h2 {
        font-size: 1.8rem;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.8rem;
        border-radius: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Adjust notable grid */
    .notable-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .notable-item {
        padding: 1.5rem;
    }
}

/* Mobile Large (640px and below) */
@media (max-width: 640px) {
    .container {
        padding: 0 15px;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .content-section {
        padding: 2.5rem 0;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .content-section h3 {
        font-size: 1.4rem;
    }

    .content-section p {
        font-size: 1rem;
        text-align: left;
    }

    .animated-bg-header {
        min-height: 100px;
        padding: 1.25rem 0.75rem;
    }

    .animated-bg-header h2 {
        font-size: 1.5rem;
    }

    .animated-bg-header .section-number {
        font-size: 0.9rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card h3 {
        font-size: 1.3rem;
    }

    .card p {
        font-size: 0.95rem;
    }
}

/* Mobile Small (480px and below) */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .navbar-brand .logo {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .navbar-brand .logo-image {
        height: 35px;
    }

    .hero-section {
        padding: 2.5rem 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .hero-section p {
        font-size: 0.95rem;
    }

    .content-section {
        padding: 2rem 0;
    }

    .content-section h2 {
        font-size: 1.5rem;
    }

    .animated-bg-header {
        min-height: 90px;
        padding: 1rem 0.5rem;
        border-radius: 12px;
    }

    .animated-bg-header h2 {
        font-size: 1.3rem;
    }

    .card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    footer {
        padding: 3rem 0 1.5rem;
    }
}

/* Extra Small Mobile (375px and below) */
@media (max-width: 375px) {
    .animated-bg-header h2 {
        font-size: 1.15rem;
    }

    .navbar-brand .logo {
        font-size: 0.9rem;
    }
}

/* Landscape Mobile Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 2rem 0;
    }

    .content-section {
        padding: 2rem 0;
    }

    .animated-bg-header {
        min-height: 80px;
        padding: 1rem;
    }
}

/* ===============================================
   ELEGANT SCROLL-DRIVEN ANIMATIONS
   =============================================== */

/* Fade in on scroll animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(40px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section-by-section scroll reveal - SMOOTHER & SLOWER */
.content-section,
.page-content > .container > .content-section,
.page-content .content-section {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1.6s cubic-bezier(0.19, 1, 0.22, 1), 
                transform 1.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.content-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero sections with elegant entrance - SMOOTHER */
.hero-section,
.page-hero {
    opacity: 0;
    animation: fadeInScale 1.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.3s;
}

/* Card entrance animations - SMOOTHER & SLOWER */
.card {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.content-section.revealed .card:nth-child(1),
.grid-2 .card:nth-child(1),
.grid-3 .card:nth-child(1) { 
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0) scale(1);
}
.content-section.revealed .card:nth-child(2),
.grid-2 .card:nth-child(2),
.grid-3 .card:nth-child(2) { 
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0) scale(1);
}
.content-section.revealed .card:nth-child(3),
.grid-2 .card:nth-child(3),
.grid-3 .card:nth-child(3) { 
    transition-delay: 0.45s;
    opacity: 1;
    transform: translateY(0) scale(1);
}
.content-section.revealed .card:nth-child(4),
.grid-2 .card:nth-child(4),
.grid-3 .card:nth-child(4) { 
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0) scale(1);
}
.content-section.revealed .card:nth-child(5),
.grid-2 .card:nth-child(5),
.grid-3 .card:nth-child(5) { 
    transition-delay: 0.75s;
    opacity: 1;
    transform: translateY(0) scale(1);
}
.content-section.revealed .card:nth-child(6),
.grid-2 .card:nth-child(6),
.grid-3 .card:nth-child(6) { 
    transition-delay: 0.9s;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Ensure grid cards reveal properly */
.grid-2.revealed .card,
.grid-3.revealed .card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Additional fix for Projects page and nested sections */
.page-content,
.page-content > .container {
    opacity: 1 !important;
    transform: none !important;
}

.page-content .content-section {
    opacity: 0;
    transform: translateY(80px);
}

.page-content .content-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Notable items elegant stagger animation - SMOOTHER */
.notable-item {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.notable-overview.revealed .notable-item:nth-child(1) { 
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0) scale(1);
}
.notable-overview.revealed .notable-item:nth-child(2) { 
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0) scale(1);
}
.notable-overview.revealed .notable-item:nth-child(3) { 
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Section headers elegant reveal - SMOOTHER */
.section-header,
.content-section h2,
.content-section h3 {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.content-section.revealed .section-header,
.content-section.revealed h2,
.content-section.revealed h3 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

/* Smooth transitions for all interactive elements */
a, button, .map-marker {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Parallax effect for backgrounds */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Enhanced hover effects with smooth transitions */
.card:hover {
    transform: translateY(-12px) scale(1.02);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notable-item:hover {
    transform: translateY(-10px) scale(1.03);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Pulsing marker animation for map */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(220, 38, 38, 0);
    }
}

.map-marker-office .marker-pin circle {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

/* Elegant page load animation - SMOOTHER */
body {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.15s;
}

/* Ensure page hero is visible */
.page-hero {
    opacity: 1 !important;
}

/* Grid items reveal */
.grid-2,
.grid-3,
.notable-grid {
    position: relative;
}

/* Map section reveal - SMOOTHER */
.global-reach-section {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.4s cubic-bezier(0.19, 1, 0.22, 1),
                transform 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.global-reach-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.global-reach-section .section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1),
                transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.global-reach-section.revealed .section-header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.global-map-wrapper {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.4s,
                transform 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.4s;
}

.global-reach-section.revealed .global-map-wrapper {
    opacity: 1;
    transform: scale(1);
}

/* ===========================
   NEW PROJECTS PAGE DESIGN
   =========================== */

/* Section 1: Full Screen Interactive Hero */
.projects-hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
}

.projects-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.projects-hero-content {
    max-width: 1400px;
    width: 100%;
    z-index: 1;
}

.hero-title-wrapper {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(40px);
    animation: heroFadeIn 1.2s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #cbd5e1;
    font-weight: 400;
}

/* Interactive Project Cards */
.interactive-project-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
    padding: 0 40px;
}

.project-category-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 280px;
    opacity: 0;
    transform: translateY(60px) scale(0.95);
}

.project-category-card:nth-child(1) { animation: cardReveal 1s cubic-bezier(0.19, 1, 0.22, 1) 0.6s forwards; }
.project-category-card:nth-child(2) { animation: cardReveal 1s cubic-bezier(0.19, 1, 0.22, 1) 0.8s forwards; }
.project-category-card:nth-child(3) { animation: cardReveal 1s cubic-bezier(0.19, 1, 0.22, 1) 1s forwards; }

@keyframes cardReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.railway-card { color: #3b82f6; }
.commercial-card { color: #f59e0b; }
.business-card { color: #10b981; }

.project-category-card:hover::before {
    opacity: 1;
}

.project-category-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.08);
    border-color: currentColor;
    box-shadow: 0 30px 80px -20px currentColor;
}

.project-category-card.expanded {
    flex: 2.5;
    background: rgba(255, 255, 255, 0.12);
    border-color: currentColor;
    box-shadow: 0 40px 100px -20px currentColor;
}

.project-category-card.collapsed {
    flex: 0.6;
    opacity: 0.6;
}

.card-icon {
    width: 120px;
    height: 50px;
    margin: 0 auto 24px;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-category-card:hover .card-icon {
    transform: scale(1.1) translateY(-4px);
}

.card-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.card-count {
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.expanded-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    margin-top: 30px;
}

.project-category-card.expanded .expanded-content {
    max-height: 600px;
    opacity: 1;
}

.project-list {
    list-style: none;
    padding: 0;
}

.project-list li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-category-card.expanded .project-list li {
    opacity: 1;
    transform: translateX(0);
}

.project-category-card.expanded .project-list li:nth-child(1) { transition-delay: 0.1s; }
.project-category-card.expanded .project-list li:nth-child(2) { transition-delay: 0.15s; }
.project-category-card.expanded .project-list li:nth-child(3) { transition-delay: 0.2s; }
.project-category-card.expanded .project-list li:nth-child(4) { transition-delay: 0.25s; }
.project-category-card.expanded .project-list li:nth-child(5) { transition-delay: 0.3s; }
.project-category-card.expanded .project-list li:nth-child(6) { transition-delay: 0.35s; }

.project-list li:hover {
    background: rgba(255, 255, 255, 0.05);
    padding-left: 12px;
    border-left: 3px solid currentColor;
}

.project-name {
    font-weight: 600;
    color: #f8fafc;
    font-size: 1rem;
    flex: 1;
}

.project-client {
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: right;
    font-weight: 500;
    white-space: nowrap;
}

.scroll-indicator {
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1) 1.4s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator svg {
    width: 28px;
    height: 28px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Section 2-4: Project Detail Sections */
.project-detail-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Enable smooth scroll snapping on body */
html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

.railway-detail-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.commercial-detail-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.business-detail-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
}

/* Horizontal Scrolling Image - NO BLUR, CRISP & CLEAR */
.horizontal-scroll-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: 0 center;
    pointer-events: none;
    z-index: 1;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.railway-scroll-image {
    background-image: url('/images/railway.png');
}

.lori-scroll-image {
    background-image: url('/images/lori.png');
}

/* Image accelerates smoothly from right to left when section is reached */
.project-detail-section.in-view .horizontal-scroll-image {
    opacity: 0.2;
    animation: accelerateRightToLeft 3.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes accelerateRightToLeft {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.detail-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

.section-header-elegant {
    text-align: center;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(80px);
    transition: all 1.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-detail-section.in-view .section-header-elegant {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.section-number {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.section-header-elegant h2 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.header-line {
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
    margin: 0 auto;
}

.railway-detail-section .header-line {
    background: linear-gradient(90deg, transparent, #3b82f6, transparent);
}

.commercial-detail-section .header-line {
    background: linear-gradient(90deg, transparent, #f59e0b, transparent);
}

.business-detail-section .header-line {
    background: linear-gradient(90deg, transparent, #10b981, transparent);
}

/* Elegant Card Design */
.elegant-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    transform: translateY(100px) scale(0.95);
}

.project-detail-section.in-view .elegant-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.project-detail-section.in-view .elegant-card:nth-child(1) { transition-delay: 0.8s; }
.project-detail-section.in-view .elegant-card:nth-child(2) { transition-delay: 1s; }
.project-detail-section.in-view .elegant-card:nth-child(3) { transition-delay: 1.2s; }
.project-detail-section.in-view .elegant-card:nth-child(4) { transition-delay: 1.4s; }
.project-detail-section.in-view .elegant-card:nth-child(5) { transition-delay: 1.6s; }
.project-detail-section.in-view .elegant-card:nth-child(6) { transition-delay: 1.8s; }

.elegant-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    border-color: currentColor;
}

.railway-detail-section .elegant-card { color: #3b82f6; }
.commercial-detail-section .elegant-card { color: #f59e0b; }
.business-detail-section .elegant-card { color: #10b981; }

.elegant-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 20px 20px 0 0;
}

.elegant-card:hover::before {
    transform: scaleX(1);
}

.card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, currentColor, currentColor);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    opacity: 0.9;
    flex-shrink: 0;
}

.elegant-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.elegant-card .card-meta {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.elegant-card p {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

/* Grid layouts for detail sections */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Responsive Design for New Projects Page */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .interactive-project-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-category-card.expanded {
        flex: 1;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header-elegant h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .projects-hero-section {
        padding: 60px 16px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .interactive-project-cards {
        padding: 0 16px;
    }
    
    .project-category-card {
        padding: 32px 24px;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .section-header-elegant h2 {
        font-size: 2.2rem;
    }
    
    .project-detail-section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    
    .card-title {
        font-size: 1.25rem;
    }
    
    .section-header-elegant h2 {
        font-size: 1.8rem;
    }
    
    .elegant-card {
        padding: 28px 20px;
    }
}

/* ===========================
   PROJECTS PAGE - IMAGE DISPLAY FIX
   =========================== */

/* Image container */
.horizontal-scroll-image {
    flex: 0 0 45% !important;
    max-width: 45% !important;
    min-width: 45% !important;
    height: 100% !important;
    min-height: 600px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4rem 2rem !important;
    position: relative !important;
}

/* Vehicle images */
.vehicle-image {
    display: block !important;
    width: 100% !important;
    max-width: 650px !important;
    height: auto !important;
    object-fit: contain !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Railway background */
.railway-scroll-image {
    background: linear-gradient(135deg, #C8D8E4 0%, #9BB5C8 50%, #6D8FA5 100%) !important;
}

/* Lori/Truck background */
.lori-scroll-image {
    background: linear-gradient(135deg, #E8D8C8 0%, #D4C0AA 50%, #C0A88C 100%) !important;
}

/* Project detail sections */
.project-detail-section {
    display: flex !important;
    min-height: 100vh !important;
    background: #FAF9F6 !important;
}

/* Logo image in header */
.logo-image {
    display: block !important;
    height: 40px !important;
    width: auto !important;
    margin-right: 15px !important;
}

/* ===========================
   PROJECTS PAGE - CLEAN DESIGN
   =========================== */

/* Clean Hero Section */
.projects-hero-clean {
    padding: 100px 0 80px;
    background: #ffffff;
}

.hero-content-clean {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: #f0f7ff;
    color: #4a90e2;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-title-clean {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle-clean {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #666;
    font-weight: 400;
    line-height: 1.6;
}

/* Project Detail Sections */
.project-detail-clean {
    padding: 80px 0;
    background: #ffffff;
}

.project-detail-clean:nth-child(even) {
    background: #fafbfc;
}

.project-split-layout {
    display: flex;
    gap: 80px;
    align-items: center;
}

.project-split-layout.reverse {
    flex-direction: row-reverse;
}

.project-content-side {
    flex: 1;
    max-width: 550px;
}

.project-image-side {
    flex: 1;
    max-width: 550px;
}

.project-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #fff4e6;
    color: #ff8c42;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.railway-detail .project-badge {
    background: #e3f2fd;
    color: #2196F3;
}

.commercial-detail .project-badge {
    background: #fff3e0;
    color: #FF9800;
}

.business-detail .project-badge {
    background: #f3e5f5;
    color: #9C27B0;
}

.project-section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.project-intro {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* Project List */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.project-detail-clean:nth-child(even) .project-item {
    background: #fafbfc;
}

.project-item:hover {
    border-color: #4a90e2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.1);
    transform: translateX(5px);
}

.project-dot {
    width: 12px;
    height: 12px;
    background: #4a90e2;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.railway-detail .project-dot {
    background: #2196F3;
}

.commercial-detail .project-dot {
    background: #FF9800;
}

.project-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.project-details p {
    font-size: 0.95rem;
    color: #666;
}

/* Project Images */
.project-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #f8f9fa;
    position: relative;
}

.railway-img {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.commercial-img {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
}

.project-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    padding: 40px;
}

/* Business Support Section */
.business-support-layout {
    max-width: 1100px;
    margin: 0 auto;
}

.business-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.business-card-clean {
    padding: 35px 30px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.business-card-clean:hover {
    border-color: #9C27B0;
    box-shadow: 0 8px 24px rgba(156, 39, 176, 0.12);
    transform: translateY(-5px);
}

.business-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
}

.business-icon svg {
    width: 26px;
    height: 26px;
}

.business-card-clean h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.business-card-clean p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Clean CTA Section */
.projects-cta-clean {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
}

.cta-content-clean h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-content-clean p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 35px;
}

.cta-button-clean {
    display: inline-block;
    padding: 16px 45px;
    background: #ffffff;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button-clean:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

/* Responsive Design */
@media (max-width: 968px) {
    .project-split-layout,
    .project-split-layout.reverse {
        flex-direction: column;
        gap: 50px;
    }

    .project-content-side,
    .project-image-side {
        max-width: 100%;
    }

    .project-main-image {
        padding: 30px;
    }

    .business-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .projects-hero-clean {
        padding: 60px 0 50px;
    }

    .project-detail-clean {
        padding: 60px 0;
    }

    .project-split-layout {
        gap: 40px;
    }

    .project-section-title {
        font-size: 2rem;
    }

    .project-intro {
        font-size: 1rem;
    }

    .project-item {
        padding: 16px;
    }

    .project-main-image {
        padding: 20px;
    }

    .business-card-clean {
        padding: 28px 24px;
    }

    .projects-cta-clean {
        padding: 60px 0;
    }

    .cta-button-clean {
        padding: 14px 35px;
        font-size: 1rem;
    }
}

/* Smooth Scroll Transitions between sections */
.project-detail-clean {
    scroll-margin-top: 80px;
}

/* Enhanced hover effects for touch devices */
@media (hover: none) {
    .project-item:active {
        transform: scale(0.98);
    }

    .business-card-clean:active {
        transform: scale(0.98);
    }
}

/* ===========================
   MODERN PROJECTS PAGE DESIGN
   Clean, Professional, Beautiful
   =========================== */

/* Modern Container */
.container-modern {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Project Sections */
.project-section-modern {
    padding: 120px 0;
    background: #ffffff;
    position: relative;
}

.railway-modern {
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
}

.commercial-modern {
    background: #ffffff;
}

.business-modern {
    background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
}

/* Split Layout */
.project-layout-split {
    display: flex;
    align-items: center;
    gap: 80px;
    min-height: 600px;
}

.reverse-layout {
    flex-direction: row-reverse;
}

.project-content-modern {
    flex: 1;
    z-index: 2;
}

.project-image-modern {
    flex: 1;
    z-index: 1;
}

/* Badges */
.project-badge-modern {
    display: inline-block;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 30px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.rail-badge {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.commercial-badge {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.business-badge {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Titles */
.project-title-modern {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-description-modern {
    font-size: 18px;
    color: #64748b;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}

/* Project Items List */
.project-items-modern {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-item-modern {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.project-item-modern:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.item-dot-modern {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    flex-shrink: 0;
    margin-top: 8px;
}

.orange-dot {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.item-info-modern h4 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.item-info-modern p {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Image Container */
.image-container-modern {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    height: 600px;
}

.railway-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.commercial-img-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(234, 88, 12, 0.2) 100%);
    z-index: 1;
    pointer-events: none;
}

.project-img-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-item-modern:hover ~ .project-image-modern .project-img-modern {
    transform: scale(1.02);
}

/* Business Section */
.business-layout-modern {
    text-align: center;
}

.business-header-modern {
    max-width: 800px;
    margin: 0 auto 60px;
}

.center-title {
    text-align: center;
}

.center-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.business-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.business-card-modern {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.business-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.business-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.business-card-icon svg {
    width: 28px;
    height: 28px;
    color: #ffffff;
}

.business-card-modern h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.4;
}

.business-card-modern p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.7;
}

/* CTA Section */
.cta-section-modern {
    padding: 100px 0;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    text-align: center;
}

.cta-content-modern h2 {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-content-modern p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.cta-btn-modern {
    display: inline-block;
    padding: 16px 48px;
    background: #ffffff;
    color: #7c3aed;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-btn-modern:hover {
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    color: #6d28d9;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container-modern {
        padding: 0 30px;
    }

    .project-layout-split {
        gap: 60px;
    }

    .project-title-modern {
        font-size: 40px;
    }
}

@media (max-width: 968px) {
    .project-section-modern {
        padding: 80px 0;
    }

    .project-layout-split,
    .reverse-layout {
        flex-direction: column;
        gap: 40px;
    }

    .project-title-modern {
        font-size: 36px;
    }

    .project-description-modern {
        font-size: 16px;
    }

    .image-container-modern {
        height: 400px;
    }

    .business-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cta-content-modern h2 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .container-modern {
        padding: 0 20px;
    }

    .project-section-modern {
        padding: 60px 0;
    }

    .project-title-modern {
        font-size: 28px;
    }

    .project-description-modern {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .project-badge-modern {
        font-size: 10px;
        padding: 6px 16px;
    }

    .project-items-modern {
        gap: 16px;
    }

    .project-item-modern {
        padding: 12px;
    }

    .item-info-modern h4 {
        font-size: 16px;
    }

    .item-info-modern p {
        font-size: 13px;
    }

    .image-container-modern {
        height: 300px;
    }

    .business-card-modern {
        padding: 30px 24px;
    }

    .business-card-modern h4 {
        font-size: 18px;
    }

    .cta-section-modern {
        padding: 60px 0;
    }

    .cta-content-modern h2 {
        font-size: 26px;
    }

    .cta-content-modern p {
        font-size: 16px;
    }

    .cta-btn-modern {
        padding: 14px 36px;
        font-size: 15px;
    }
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
    .project-item-modern,
    .business-card-modern,
    .project-img-modern {
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}


