/* =====================================================
   HOME.CSS - MI Courier and Freight Services Fiji
   Complete styling for index.html
   ===================================================== */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* =====================================================
   PAGE LOADING AND SCROLL ANIMATIONS
   ===================================================== */

/* Page loading animation */
body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    opacity: 0;
    animation: pageLoad 0.8s ease-out forwards;
}

@keyframes pageLoad {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Smooth scroll reveal animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced button hover animations */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-height: 44px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   HEADER STYLES WITH SCROLL BEHAVIOR
   ===================================================== */

.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), 
                opacity 0.3s ease,
                box-shadow 0.3s ease;
    transform: translateY(0);
}

.header.nav-hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.header.nav-visible {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav {
    padding: 1rem 0;
}

.nav__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: slideInFromTop 0.8s ease-out;
    padding: 6px 10px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(52,152,219,0.12), rgba(46,204,113,0.08));
    border: 1px solid rgba(52,152,219,0.15);
    box-shadow: 0 6px 18px rgba(31, 41, 55, 0.08);
}

.nav__logo:hover {
    color: #3498db;
    transform: scale(1.05);
    box-shadow: 0 10px 24px rgba(31, 41, 55, 0.12);
    background: linear-gradient(135deg, rgba(52,152,219,0.18), rgba(46,204,113,0.12));
}

.nav__logo-img {
    width: auto;
    height: 48px;
    max-width: 180px;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
    transition: all 0.3s ease;
    animation: rotateIn 1s ease-out;
}

.nav__logo:hover .nav__logo-img {
    transform: rotate(5deg) scale(1.1);
}

.nav__logo h2 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin: 0;
    line-height: 1;
    color: #0f172a;
    position: relative;
    padding-left: 6px;
}

.nav__logo h2::after {
    content: "Freight";
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 1.4px;
    color: #64748b;
    margin-top: 4px;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.flex {
    display: flex;
}

.gap {
    gap: 1rem;
}

.md {
    align-items: center;
}

.nav__buttons {
    display: flex;
    gap: 0.5rem;
}

.nav__menu {
    display: flex;
    list-style: none;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #e9ecef;
    margin: 0;
    animation: slideInFromBottom 0.8s ease-out 0.2s both;
}

.nav__menu li {
    margin: 0;
    animation: fadeInScale 0.6s ease-out forwards;
}

.nav__menu li:nth-child(1) { animation-delay: 0.3s; }
.nav__menu li:nth-child(2) { animation-delay: 0.4s; }
.nav__menu li:nth-child(3) { animation-delay: 0.5s; }
.nav__menu li:nth-child(4) { animation-delay: 0.6s; }
.nav__menu li:nth-child(5) { animation-delay: 0.7s; }

.nav__link {
    color: #495057;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav__link:hover {
    color: #3498db;
    background-color: #f8f9fa;
}

.nav__link:hover::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #3498db;
    border-radius: 1px;
}

.nav__menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #495057;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav__menu-toggle:hover {
    background: #f8f9fa;
    color: #3498db;
}

.mobile-auth-buttons {
    display: none;
}

/* =====================================================
   BUTTON STYLES
   ===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #3498db;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    color: white;
}

.btn-ghost {
    background: transparent;
    color: #495057;
    border-color: #dee2e6;
}

.btn-ghost:hover {
    background: #f8f9fa;
    border-color: #3498db;
    color: #3498db;
}

.btn-outline {
    background: white;
    color: #3498db;
    border-color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
}

/* =====================================================
   BANNER SECTION WITH ANIMATIONS
   ===================================================== */

.banner {
    position: relative;
    min-height: 70vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    animation: gradientShift 8s ease-in-out infinite;
    margin-top: 0; /* Remove top margin since header is now fixed */
}

/* Add padding to body to account for fixed header */
body {
    font-family: 'Inter', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
    opacity: 0;
    animation: pageLoad 0.8s ease-out forwards;
    padding-top: 120px; /* Space for fixed header */
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 62, 80, 0.3);
    z-index: 1;
}

.banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.2);
    z-index: 2;
}

.banner__content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 1.2s ease-out;
}

.banner__text h1 {
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
    animation: slideInFromLeft 1s ease-out 0.3s both;
}

.banner__text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.95);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    animation: slideInFromRight 1s ease-out 0.6s both;
}

.banner__buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    animation: bounceIn 1.5s ease-out 0.9s both;
}

.banner__buttons .btn {
    min-width: 180px;
    font-size: 1.1rem;
    padding: 14px 35px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.banner__buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.banner__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    animation: bounceIn 1.5s ease-out 0.9s both;
}

.banner__cta .btn {
    min-width: 160px;
    font-size: 1rem;
    padding: 12px 32px;
    animation: pulse 2s infinite;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* =====================================================
   SERVICES TAB SECTION
   ===================================================== */

.tracking__tab {
    padding: 4rem 0;
    background: #ffffff;
    position: relative;
}

.tracking__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.tab__nav {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-tab {
    flex: 1;
    max-width: 200px;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tab:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
}

.nav-tab.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.tab__content {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.tab-pane.active {
    display: block !important;
    opacity: 1;
}

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

/* =====================================================
   FORM STYLES
   ===================================================== */

.service-form {
    width: 100%;
}

.step-heading {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

.step-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

/* =====================================================
   PROFESSIONAL PACKAGE INFORMATION STYLING
   ===================================================== */

/* Item Container Styling */
.item-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 16px 16px 0 0;
}

.item-container:hover {
    box-shadow: 0 8px 32px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
    border-color: #3498db;
}

/* Item Header */
.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.item-header h4 {
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.item-header h4::before {
    content: '📦';
    font-size: 1.1rem;
}

.remove-item-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.remove-item-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Dimensions Header */
.dimensions-header {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    padding: 1rem;
    border-radius: 12px;
    margin: 1.5rem 0 1rem 0;
    border-left: 4px solid #3498db;
}

.dimensions-header h5 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dimensions-header h5::before {
    content: '📏';
    font-size: 1rem;
}

/* Enhanced Form Row for Dimensions */
.dimensions-row {
    background: rgba(52, 152, 219, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

/* CBM Display */
.cbm-display {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.2);
}

.cbm-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cbm-label {
    font-weight: 600;
    font-size: 1rem;
}

.cbm-value {
    font-size: 1.25rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
}

/* Add Item Section */
.add-item-section {
    text-align: center;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 16px;
    border: 2px dashed #6c757d;
    transition: all 0.3s ease;
}

.add-item-section:hover {
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(52, 152, 219, 0.1));
}

.add-item-btn {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(23, 162, 184, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.add-item-btn:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(23, 162, 184, 0.3);
}

.add-item-btn i {
    font-size: 1.2rem;
}

/* Total CBM Section */
.total-cbm-section {
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: 0 8px 32px rgba(111, 66, 193, 0.2);
}

.total-cbm-display h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.total-cbm-display h4::before {
    content: '📊';
    font-size: 1.2rem;
}

.summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    text-align: center;
}

.summary-row span {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-row strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input:invalid {
    border-color: #e74c3c;
}

.form-input:valid {
    border-color: #27ae60;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.next-btn {
    margin-left: auto;
}

.back-btn {
    margin-right: auto;
}

/* Location Input Styles */
.location-input-container {
    position: relative;
}

.custom-location-input {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.map-btn {
    padding: 12px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.map-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* Service Button */
.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.service-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    color: white;
}

.service-btn.secondary {
    background: #6c757d;
}

.service-btn.secondary:hover {
    background: #5a6268;
}

/* =====================================================
   LOCATION CARDS
   ===================================================== */

/* =====================================================
   COMPANY DESCRIPTION SECTION
   ===================================================== */

.services_company_description {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    z-index: 1;
}

.servics_container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.services_title {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

.services_description {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.services_list {
    list-style: none;
    margin-bottom: 3rem;
}

.services_list li {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    will-change: transform;
}

.services_list li:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    border-left-width: 8px;
}

.service_title {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

.service_list {
    list-style: none;
    margin-bottom: 3rem;
}

.service_list li {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-left: 4px solid #3498db;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service_list li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.services_company_description_card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    margin: 3rem 0;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    position: relative;
    overflow: hidden;
}

.services_company_description_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.1);
    z-index: 1;
}

.services_company_description_card > * {
    position: relative;
    z-index: 2;
}

.services_company_description_card_title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.services_company_description_card_text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.services_company_description_card_list {
    list-style: none;
    margin-bottom: 2rem;
}

.services_company_description_card_list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.services_company_description_card_list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffffff;
    font-weight: bold;
}

.service_btn_learn_more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0.5rem 1rem;
    padding: 12px 24px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

.service_btn_learn_more:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
    color: white;
}

/* =====================================================
   VIDEO SECTION
   ===================================================== */

.video-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-title {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.video-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.video-item:nth-child(1) { animation-delay: 0.1s; }
.video-item:nth-child(2) { animation-delay: 0.2s; }
.video-item:nth-child(3) { animation-delay: 0.3s; }
.video-item:nth-child(4) { animation-delay: 0.4s; }
.video-item:nth-child(5) { animation-delay: 0.5s; }
.video-item:nth-child(6) { animation-delay: 0.6s; }

.video-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.2);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* =====================================================
   PROFESSIONAL FOOTER STYLES
   ===================================================== */

.professional-footer {
    background: linear-gradient(135deg, #1a1f2e 0%, #2c3e50 50%, #1a1f2e 100%);
    color: #ecf0f1;
    padding: 2.5rem 0 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.professional-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #3498db 0%, #2ecc71 25%, #9b59b6 50%, #e74c3c 75%, #3498db 100%);
    background-size: 200% 100%;
    animation: gradientSlide 8s linear infinite;
}

@keyframes gradientSlide {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-right: 1.5rem;
    position: relative;
}

.footer-brand::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(52, 152, 219, 0.3), transparent);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.footer-logo-img {
    width: auto;
    height: 58px;
    max-width: 180px;
    border-radius: 0;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.footer-logo-img:hover {
    transform: scale(1.1);
    box-shadow: none;
}

.footer-brand-name {
    color: #ffffff;
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ffffff 0%, #3498db 50%, #2ecc71 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    position: relative;
    display: inline-block;
}

.footer-brand-name::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #3498db, transparent);
    opacity: 0.5;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(46, 204, 113, 0.15));
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 2px solid rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.footer-social a:hover::before {
    left: 100%;
}

.footer-social a:hover {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    transform: translateY(-6px) scale(1.1) rotate(5deg);
    box-shadow: 0 12px 32px rgba(52, 152, 219, 0.6),
                0 0 30px rgba(52, 152, 219, 0.4);
    border-color: #2ecc71;
}

.footer-section {
    display: flex;
    flex-direction: column;
    padding: 0 1rem;
}

.footer-links-container {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-links-column {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
}

.footer-subheading {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-subheading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding-left: 0;
    position: relative;
    font-size: 0.9rem;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
    padding-left: 16px;
    background: rgba(52, 152, 219, 0.05);
}

.footer-link:hover::before {
    width: 8px;
}

.footer-link i {
    width: 18px;
    color: #3498db;
    font-size: 14px;
    text-align: center;
}

.footer-contact-section {
    margin: 1.5rem 0 1rem;
    max-width: 1200px;
}

.footer-contact-heading {
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
}

.footer-contact-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 2px;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08), rgba(46, 204, 113, 0.05));
    border-radius: 12px;
    border: 2px solid rgba(52, 152, 219, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.6s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15), rgba(46, 204, 113, 0.1));
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.3),
                0 0 20px rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.contact-icon {
    color: #3498db;
    font-size: 1.4rem;
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(46, 204, 113, 0.15));
    border-radius: 12px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.contact-item:hover .contact-icon {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    transform: scale(1.15) translateY(-8px) rotate(10deg);
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.5),
                0 0 30px rgba(52, 152, 219, 0.3);
    border-color: #2ecc71;
}

.contact-details {
    color: #bdc3c7;
    flex: 1;
    font-size: 0.9rem;
}

.contact-details strong {
    color: #ffffff;
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 700;
    font-size: 0.95rem;
}

.footer-bottom {
    /*border-top: 1px solid rgba(52, 152, 219, 0.3);*/
    padding: 1.8rem 0;
    margin-top: 1.5rem;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
}

.footer-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.copyright {
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.copyright::before {
    content: '©';
    font-size: 1.1rem;
    font-weight: 700;
    color: #3498db;
    text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.company-reg {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-left: 0.8rem;
    padding: 0.25rem 0.75rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.footer-legal {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(52, 152, 219, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(52, 152, 219, 0.15);
}

.footer-legal-link {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.4rem 0.9rem;
    border-radius: 18px;
    font-weight: 500;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.footer-legal-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.2), transparent);
    transition: left 0.5s ease;
}

.footer-legal-link:hover::before {
    left: 100%;
}

.footer-legal-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(46, 204, 113, 0.15));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.separator {
    color: #64748b;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
    padding: 0 0.3rem;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 12px 32px rgba(52, 152, 219, 0.4);
}

.back-to-top i {
    font-size: 1.2rem;
}

.contact-details {
    color: #bdc3c7;
}

.contact-details strong {
    color: white;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 600;
}


/* =====================================================
   CARD STYLES
   ===================================================== */

.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
}

.card-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* =====================================================
   TRACKING STYLES
   ===================================================== */

.tracking-results {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.tracking-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tracking-status,
.current-location,
.delivery-estimate,
.vessel-info {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.tracking-status h4,
.current-location h4,
.delivery-estimate h4,
.vessel-info h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.tracking-timeline {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}

.tracking-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.api-status {
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    margin-left: 8px;
    font-weight: 500;
}

.tracking-input-wrapper .input-help {
    margin-top: 8px;
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.4;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .nav__top {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav__menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid #e9ecef;
    }
    
    .nav__menu.active {
        display: flex;
    }
    
    .nav__menu-toggle {
        display: block;
    }
    
    .mobile-auth-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }
    
    .mobile-auth-btn {
        display: block;
        padding: 12px;
        text-align: center;
        background: #3498db;
        color: white;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 600;
        transition: background-color 0.3s ease;
    }
    
    .mobile-auth-btn:hover {
        background: #2980b9;
        color: white;
    }
    
    .banner__content {
        padding: 1rem;
    }
    
    .banner__cta {
        flex-direction: column;
        align-items: center;
    }
    
    .tab__nav {
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-tab {
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-links-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .next-btn,
    .back-btn {
        margin: 0;
        width: 100%;
    }
    
    .custom-location-input {
        flex-direction: column;
    }
    
    .tracking-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .tracking__container {
        padding: 0 16px;
    }
    
    .banner__cta .btn {
        min-width: auto;
        width: 100%;
        max-width: 280px;
    }
    
    .tab__content {
        padding: 1.5rem;
    }
    
    .video-container {
        padding: 0 16px;
    }
    
    .servics_container {
        padding: 0 16px;
    }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

.hidden {
    display: none;
}

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

.mt-2 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.font-bold {
    font-weight: 700;
}

.text-primary {
    color: #3498db;
}

.text-secondary {
    color: #6c757d;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid;
    font-weight: 500;
}

.alert-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border-color: #27ae60;
}

.alert-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: #e74c3c;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================================
   ANIMATION KEYFRAMES
   ===================================================== */

@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    0% {
        opacity: 0;
        transform: rotate(-180deg) scale(0.5);
    }
    100% {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

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

/* Floating animation for contact icons */
.contact-icon {
    color: #3498db;
    font-size: 1.8rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    animation: floatingIcon 3s ease-in-out infinite;
}

/* =====================================================
   SCROLL-BASED LIST ANIMATIONS
   ===================================================== */

/* Service Lists Scroll Behavior */
.services_list,
.service_list,
.services_company_description_card_list {
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.services_list.scroll-hidden,
.service_list.scroll-hidden,
.services_company_description_card_list.scroll-hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Gentle disappearing animation for scroll up */
.services_list.scroll-hidden-fast,
.service_list.scroll-hidden-fast,
.services_company_description_card_list.scroll-hidden-fast {
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
}

.services_list.scroll-visible,
.service_list.scroll-visible,
.services_company_description_card_list.scroll-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Enhanced scroll animations for list items */
.services_list.scroll-visible li,
.service_list.scroll-visible li,
.services_company_description_card_list.scroll-visible li {
    animation: fadeInSlideUp 0.6s ease-out forwards;
    animation-delay: calc(var(--item-index, 0) * 0.08s);
}

/* Gentle hide animation for items when scrolling up */
.services_list.scroll-hidden-fast li,
.service_list.scroll-hidden-fast li,
.services_company_description_card_list.scroll-hidden-fast li {
    animation: fadeOutSlideUp 0.4s ease-out forwards;
    animation-delay: calc(var(--item-index, 0) * 0.05s);
}

.services_list li {
    --item-index: 0;
}

.services_list li:nth-child(1) { --item-index: 1; }
.services_list li:nth-child(2) { --item-index: 2; }
.services_list li:nth-child(3) { --item-index: 3; }
.services_list li:nth-child(4) { --item-index: 4; }
.services_list li:nth-child(5) { --item-index: 5; }
.services_list li:nth-child(6) { --item-index: 6; }
.services_list li:nth-child(7) { --item-index: 7; }

.service_list li:nth-child(1) { --item-index: 1; }
.service_list li:nth-child(2) { --item-index: 2; }
.service_list li:nth-child(3) { --item-index: 3; }

.services_company_description_card_list li:nth-child(1) { --item-index: 1; }
.services_company_description_card_list li:nth-child(2) { --item-index: 2; }
.services_company_description_card_list li:nth-child(3) { --item-index: 3; }
.services_company_description_card_list li:nth-child(4) { --item-index: 4; }
.services_company_description_card_list li:nth-child(5) { --item-index: 5; }
.services_company_description_card_list li:nth-child(6) { --item-index: 6; }

@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutSlideUp {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateY(-5px) scale(0.98);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.97);
    }
}

/* =====================================================
   HOVER EFFECTS FOR SERVICE LIST ITEMS
   ===================================================== */

/* Green hover effect for p1-212 class */
.p1-212:hover {
    color: #27ae60;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateX(5px);
}

.p1-212:hover strong {
    color: #27ae60;
}

/* Blue hover effect for p1-213 class */
.p1-213:hover {
    color: #3498db;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: translateX(5px);
}

.p1-213:hover strong {
    color: #3498db;
}

/* Smooth Animations */
.fade-in {
    animation: fadeInUp 0.6s ease-out;
}

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