/* ============================================
   Trans Logistikz - Global Stylesheet
   Mobile-First Approach
   East Asian Design Patterns (Chinese & Korean)
   ============================================ */

/* Google Fonts Integration */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* Base Typography - Larger font size for better readability */
body {
    font-family: 'Noto Sans SC', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* Language-specific font families */
.lang-zh body, .lang-zh {
    font-family: 'Noto Sans SC', sans-serif;
}

.lang-ko body, .lang-ko {
    font-family: 'Noto Sans KR', sans-serif;
}

/* East Asian Color Palettes */
:root {
    /* Chinese - Imperial Red & Gold */
    --imperial-red: #EE1C25;
    --imperial-gold: #FFD700;
    --imperial-red-dark: #C4161E;
    
    /* Korean - Clean Pastel/Minimalist Blue */
    --korean-blue: #4A90E2;
    --korean-pastel-blue: #E8F4F8;
    --korean-blue-dark: #357ABD;
}

/* Glassmorphism Effects (Korean Design) */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-effect-strong {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient Buttons with Rounded-xl (Korean Style) */
.btn-gradient {
    background: linear-gradient(135deg, #EE1C25 0%, #C4161E 100%);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(238, 28, 37, 0.4);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 28, 37, 0.6);
    background: linear-gradient(135deg, #FF2D3A 0%, #EE1C25 100%);
}

.btn-gradient-chinese {
    background: linear-gradient(135deg, #EE1C25 0%, #C4161E 100%);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(238, 28, 37, 0.4);
}

.btn-gradient-chinese:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 28, 37, 0.6);
    background: linear-gradient(135deg, #FF2D3A 0%, #EE1C25 100%);
}

.btn-gradient-korean {
    background: linear-gradient(135deg, #EE1C25 0%, #C4161E 100%);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(238, 28, 37, 0.4);
}

.btn-gradient-korean:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 28, 37, 0.6);
    background: linear-gradient(135deg, #FF2D3A 0%, #EE1C25 100%);
}

/* Language Switcher Active State */
.lang-btn.active {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Smooth Hover Effects */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Increased Layout Density - More Information */
.dense-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

@media (min-width: 768px) {
    .dense-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .dense-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

/* WeChat/Kakao Contact Widget */
.social-contact-widget {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-contact-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.social-contact-btn:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.wechat-btn {
    background: linear-gradient(135deg, #1AAD19 0%, #0F9D0E 100%);
}

.kakao-btn {
    background: linear-gradient(135deg, #FEE500 0%, #FDD835 100%);
}

.social-contact-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.kakao-btn svg {
    fill: #3C1E1E;
}

.social-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.social-contact-btn:hover .social-tooltip {
    opacity: 1;
}

/* Chinese Theme Colors - Force Red for All Buttons */
.chinese-theme .btn-track,
.chinese-theme .btn-mail,
.chinese-theme .btn-red,
.chinese-theme button[type="submit"],
.chinese-theme .contact-submit-btn,
.chinese-theme .btn-gradient,
.chinese-theme .btn-gradient-chinese,
.chinese-theme .btn-gradient-korean,
.chinese-theme button.btn-track,
.chinese-theme button.btn-mail,
.chinese-theme button.btn-red,
.chinese-theme button.btn-gradient,
.chinese-theme button.btn-gradient-chinese,
.chinese-theme button.btn-gradient-korean {
    background: linear-gradient(135deg, #EE1C25 0%, #C4161E 100%) !important;
    border-radius: 1rem;
}

.chinese-theme .btn-track:hover,
.chinese-theme .btn-mail:hover,
.chinese-theme .btn-red:hover,
.chinese-theme button[type="submit"]:hover,
.chinese-theme .contact-submit-btn:hover,
.chinese-theme .btn-gradient:hover,
.chinese-theme .btn-gradient-chinese:hover,
.chinese-theme .btn-gradient-korean:hover,
.chinese-theme button.btn-track:hover,
.chinese-theme button.btn-mail:hover,
.chinese-theme button.btn-red:hover,
.chinese-theme button.btn-gradient:hover,
.chinese-theme button.btn-gradient-chinese:hover,
.chinese-theme button.btn-gradient-korean:hover {
    background: linear-gradient(135deg, #FF2D3A 0%, #EE1C25 100%) !important;
    box-shadow: 0 6px 20px rgba(238, 28, 37, 0.6);
}

/* Korean Theme Colors - Force Red for All Buttons */
.korean-theme .btn-track,
.korean-theme .btn-mail,
.korean-theme .btn-red,
.korean-theme button[type="submit"],
.korean-theme .contact-submit-btn,
.korean-theme .btn-gradient,
.korean-theme .btn-gradient-chinese,
.korean-theme .btn-gradient-korean,
.korean-theme button.btn-track,
.korean-theme button.btn-mail,
.korean-theme button.btn-red,
.korean-theme button.btn-gradient,
.korean-theme button.btn-gradient-chinese,
.korean-theme button.btn-gradient-korean {
    background: linear-gradient(135deg, #EE1C25 0%, #C4161E 100%) !important;
    border-radius: 1rem;
}

.korean-theme .btn-track:hover,
.korean-theme .btn-mail:hover,
.korean-theme .btn-red:hover,
.korean-theme button[type="submit"]:hover,
.korean-theme .contact-submit-btn:hover,
.korean-theme .btn-gradient:hover,
.korean-theme .btn-gradient-chinese:hover,
.korean-theme .btn-gradient-korean:hover,
.korean-theme button.btn-track:hover,
.korean-theme button.btn-mail:hover,
.korean-theme button.btn-red:hover,
.korean-theme button.btn-gradient:hover,
.korean-theme button.btn-gradient-chinese:hover,
.korean-theme button.btn-gradient-korean:hover {
    background: linear-gradient(135deg, #FF2D3A 0%, #EE1C25 100%) !important;
    box-shadow: 0 6px 20px rgba(238, 28, 37, 0.6);
}

/* Form Multi-byte Character Support */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    font-family: 'Noto Sans SC', 'Noto Sans KR', system-ui, sans-serif;
    font-size: 16px;
}

/* Enhanced Back to Top Button */
.back-to-top {
    border-radius: 1rem !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6) !important;
}

.chinese-theme .back-to-top {
    background: linear-gradient(135deg, #EE1C25 0%, #C4161E 100%) !important;
}

.korean-theme .back-to-top {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%) !important;
}

/* Hero Background - Responsive Height */
.hero-bg {
    background-image: url('../assets/img/ship.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    height: 400px;
}

@media (min-width: 640px) {
    .hero-bg {
        min-height: 500px;
        height: 500px;
    }
}

@media (min-width: 768px) {
    .hero-bg {
        min-height: 600px;
        height: 600px;
        background-attachment: fixed;
    }
}

@media (min-width: 1024px) {
    .hero-bg {
        min-height: 70vh;
        height: 70vh;
    }
}

/* About Hero Background */
.about-hero-bg {
    background-image: url('../assets/img/about.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    height: 400px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.about-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.1) 0%, rgba(227, 30, 36, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.about-hero-bg:hover {
    background-size: 110%;
    transform: scale(1.02);
    filter: brightness(1.1) contrast(1.05);
}

.about-hero-bg:hover::before {
    opacity: 1;
}

@media (min-width: 640px) {
    .about-hero-bg {
        min-height: 500px;
        height: 500px;
    }
}

@media (min-width: 768px) {
    .about-hero-bg {
        min-height: 600px;
        height: 600px;
    }
}

@media (min-width: 1024px) {
    .about-hero-bg {
        min-height: 70vh;
        height: 70vh;
    }
}

/* Services Hero Background */
.services-hero-bg {
    background-image: url('../assets/img/1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    height: 400px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.services-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.1) 0%, rgba(227, 30, 36, 0.05) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.services-hero-bg:hover {
    background-size: 110%;
    transform: scale(1.02);
    filter: brightness(1.1) contrast(1.05);
}

.services-hero-bg:hover::before {
    opacity: 1;
}

@media (min-width: 640px) {
    .services-hero-bg {
        min-height: 500px;
        height: 500px;
    }
}

@media (min-width: 768px) {
    .services-hero-bg {
        min-height: 600px;
        height: 600px;
    }
}

@media (min-width: 1024px) {
    .services-hero-bg {
        min-height: 70vh;
        height: 70vh;
    }
}

/* Contact Hero Background */
.contact-hero-bg {
    background-image: url('../assets/img/harbor-4926962_1280.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    position: relative;
    overflow: hidden;
    min-height: 400px;
    height: 400px;
}

@media (min-width: 640px) {
    .contact-hero-bg {
        min-height: 500px;
        height: 500px;
    }
}

@media (min-width: 768px) {
    .contact-hero-bg {
        min-height: 600px;
        height: 600px;
    }
}

@media (min-width: 1024px) {
    .contact-hero-bg {
        min-height: 70vh;
        height: 70vh;
    }
}

/* Contact Info Cards */
.contact-info-card {
    transition: all 0.3s ease;
    height: 100%;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(227, 30, 36, 0.15);
    border-color: #e31e24;
}

/* Dark Red Theme Color */
/* Footer Background */
.footer-bg {
    background-color: #8B0000;
}

.dark-red {
    background-color: #8B0000;
}

/* Hero Overlay for Text Readability */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
    z-index: 0;
}

.hero-overlay > * {
    position: relative;
    z-index: 1;
}

/* Mobile Menu Animation */
.mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    display: block !important;
    width: 100%;
    background-color: rgba(139, 0, 0, 0.98);
    position: relative;
    z-index: 40;
    margin-top: 0;
}

.mobile-menu.active {
    max-height: 500px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    overflow: visible;
}

/* Ensure mobile menu is only visible on small screens */
@media (min-width: 768px) {
    .mobile-menu {
        display: none !important;
    }
    
    .mobile-menu.active {
        display: none !important;
    }
}

/* Hamburger Icon Animation */
.hamburger {
    cursor: pointer;
    z-index: 100;
    position: relative;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

.hamburger:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.hamburger span {
    transition: all 0.3s ease;
    pointer-events: none;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Logo Hover Effect */
.logo-container {
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
}

/* Navbar Logo Styling */
.navbar-logo-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.navbar-logo-link:hover {
    transform: scale(1.02);
}

.navbar-logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-logo-icon {
    height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.navbar-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.navbar-company-name {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Noto Sans KR', 'Noto Sans SC', system-ui, sans-serif;
}

.navbar-tagline {
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.9;
    line-height: 1.2;
    margin: 0;
    margin-top: 2px;
}

/* Responsive Navbar Logo */
@media (max-width: 640px) {
    .navbar-logo-icon {
        height: 45px;
    }
    
    .navbar-company-name {
        font-size: 1.15rem;
        letter-spacing: 0.3px;
    }
    
    .navbar-logo-text {
        margin-left: 8px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .navbar-logo-icon {
        height: 48px;
    }
    
    .navbar-company-name {
        font-size: 1.3rem;
        letter-spacing: 0.4px;
    }
}

@media (min-width: 769px) {
    .navbar-logo-icon {
        height: 50px;
    }
    
    .navbar-company-name {
        font-size: 1.35rem;
        letter-spacing: 0.5px;
    }
}

@media (min-width: 1024px) {
    .navbar-company-name {
        font-size: 1.4rem;
        letter-spacing: 0.6px;
    }
    
    .navbar-tagline {
        font-size: 0.8rem;
    }
}

/* Footer Logo Styling */
.footer-logo-container {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    width: fit-content;
    margin-bottom: 0;
    text-decoration: none;
}

.footer-logo-container:hover {
    transform: scale(1.02);
}

.footer-logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-logo-icon {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-company-name {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Noto Sans KR', 'Noto Sans SC', system-ui, sans-serif;
}

.footer-tagline {
    font-size: 0.875rem;
    font-style: italic;
    opacity: 0.9;
    line-height: 1.3;
    margin: 0;
    margin-top: 4px;
}

/* Responsive Footer Logo */
@media (max-width: 640px) {
    .footer-logo-icon {
        height: 50px;
    }
    
    .footer-logo-icon-wrapper {
        padding: 8px;
    }
    
    .footer-company-name {
        font-size: 1.3rem;
        letter-spacing: 0.3px;
    }
    
    .footer-tagline {
        font-size: 0.75rem;
    }
    
    .footer-logo-text {
        margin-left: 12px;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .footer-logo-icon {
        height: 55px;
    }
    
    .footer-company-name {
        font-size: 1.45rem;
        letter-spacing: 0.4px;
    }
}

@media (min-width: 769px) {
    .footer-logo-icon {
        height: 60px;
    }
    
    .footer-company-name {
        font-size: 1.6rem;
        letter-spacing: 0.5px;
    }
}

/* Navigation Links - Premium Underline Animation */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 50%;
    background: linear-gradient(to right, transparent, white, transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    transform: translateY(-2px);
    color: #f3f4f6;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Premium Navbar Styling */
.premium-navbar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mobile Menu Links */
.mobile-nav-link {
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: white;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mobile-nav-link:hover::before {
    transform: scaleY(1);
}

.mobile-nav-link:hover {
    padding-left: 12px;
    color: #f3f4f6;
}

/* Track Shipment Button */
.btn-track {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #EE1C25 0%, #C4161E 100%);
    border-radius: 1rem;
}

.btn-track::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-track:hover::after {
    width: 400px;
    height: 400px;
}

.btn-track:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(238, 28, 37, 0.6);
    background: linear-gradient(135deg, #FF2D3A 0%, #EE1C25 100%);
}

/* Mail/Email Button */
.btn-mail {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #EE1C25 0%, #C4161E 100%);
    border-radius: 1rem;
}

.btn-mail::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-mail:hover::after {
    width: 400px;
    height: 400px;
}

.btn-mail:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(238, 28, 37, 0.6);
    background: linear-gradient(135deg, #FF2D3A 0%, #EE1C25 100%);
}

/* Tracking Button Highlight Animation */
.tracking-highlight {
    animation: trackingPulse 2s ease-in-out;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(220, 38, 38, 0.6);
}

@keyframes trackingPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7), 0 0 0 0 rgba(220, 38, 38, 0.5);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0), 0 0 0 20px rgba(220, 38, 38, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0), 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Service Cards - Professional Styling */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card {
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    height: auto;
    min-height: 100%;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: visible;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Service Image Container - 16:9 Aspect Ratio */
.service-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f3f4f6;
    flex-shrink: 0;
}

/* Service Images - Strict 16:9 Aspect Ratio & Object Fit */
.service-image {
    transition: all 0.4s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Premium Semi-Transparent Red Overlay with Glass Effect */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(227, 30, 36, 0.75);
    backdrop-filter: blur(2px);
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.service-card:hover .service-overlay {
    opacity: 1;
    visibility: visible;
}

/* Overlay Text - White Bold Text */
.service-overlay-text {
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
    text-align: center;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    width: 100%;
}

/* Text Container - Fixed Height for Perfect Alignment */
.service-text-container {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 160px;
    height: 160px;
    padding: 1rem 1.25rem;
    position: relative;
    overflow: hidden;
    transition: height 0.5s ease-in-out !important;
    box-sizing: border-box;
}

/* Service Text - Truncated by default (2 lines only) */
.service-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: none;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.service-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

/* Full text is always in DOM, just hidden by line-clamp */
.service-text-full {
    display: inline;
}

/* Read More Button */
.service-read-more {
    margin-top: 0.5rem;
    color: #e31e24;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
}

.service-read-more:hover {
    color: #b91c1c;
    transform: translateX(4px);
}

/* Arrow is now handled by JavaScript textContent */

/* Learn More Link Styling */
.service-learn-more {
    display: inline-flex;
    align-items: center;
    margin-top: 0.75rem;
    font-weight: bold;
    color: #111827;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.service-learn-more:hover {
    color: #e31e24;
    transform: translateX(4px);
}

.service-learn-more::after {
    content: '>';
    margin-left: 0.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.service-learn-more:hover::after {
    transform: translateX(4px);
}

/* Service Grid Container - Responsive Grid (Increased Density) */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

/* Featured Services Grid */
.featured-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .featured-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ISO Tanks Featured Image Hover Effect */
.iso-tanks-image-container {
    transition: all 0.4s ease-in-out;
    cursor: pointer;
}

.iso-tanks-image {
    transition: transform 0.5s ease-in-out, filter 0.5s ease-in-out;
}

.iso-tanks-image-container:hover .iso-tanks-image {
    transform: scale(1.1);
    filter: brightness(0.9);
}

.iso-tanks-image-container:hover {
    box-shadow: 0 20px 60px rgba(227, 30, 36, 0.4);
    transform: translateY(-8px);
}

.iso-tanks-image-container:hover .iso-tanks-overlay {
    background: linear-gradient(to top, rgba(227, 30, 36, 0.7), rgba(227, 30, 36, 0.3));
    transition: background 0.4s ease-in-out;
}

.iso-tanks-image-container:hover .hover-content {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

.hover-content {
    transition: opacity 0.4s ease-in-out;
}

/* Scroll Reveal Animation - Fade In Up */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Headings */
.section-heading {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.section-heading.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Heading Underline Effect */
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, transparent, #e31e24, transparent);
    border-radius: 2px;
}

/* Services Heading Special Styling */
.services-heading {
    text-align: center;
    margin: 0 auto;
    display: block;
}

/* Hero Heading Enhanced Styling */
.hero-heading {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.1em;
}

.hero-brand {
    display: inline-block;
    animation: fadeInDown 0.8s ease-out;
}

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

/* Contact Form Styling */
.contact-submit-btn {
    background: linear-gradient(135deg, #EE1C25 0%, #C4161E 100%);
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.contact-submit-btn:hover {
    background: linear-gradient(135deg, #FF2D3A 0%, #EE1C25 100%);
    box-shadow: 0 6px 20px rgba(238, 28, 37, 0.6);
    transform: translateY(-2px);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Select Dropdown Arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Form Input Focus States */
input:focus, textarea:focus, select:focus {
    border-color: #e31e24;
}

/* Contact Form Specific Styling */
#contact-form-element input,
#contact-form-element textarea,
#contact-form-element select {
    transition: all 0.3s ease;
}

#contact-form-element input:hover,
#contact-form-element textarea:hover,
#contact-form-element select:hover {
    border-color: #c91a1f;
}

#contact-form-element input:focus,
#contact-form-element textarea:focus,
#contact-form-element select:focus {
    border-color: #e31e24;
    box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.1);
}

/* Tracking Input */
.tracking-input {
    transition: all 0.3s ease;
    background-color: white !important;
    border: none !important;
}

.tracking-input:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(238, 28, 37, 0.3);
    outline: none;
}

.tracking-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Email Input */
.email-input {
    transition: all 0.3s ease;
    background-color: white !important;
    border: none !important;
}

.email-input:focus {
    transform: scale(1.01);
    box-shadow: 0 0 0 3px rgba(238, 28, 37, 0.3);
    outline: none;
}

.email-input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Tracking Data Table Styling */
#tracking-data-section {
    animation: fadeInUp 0.5s ease-out;
}

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

#tracking-data-table {
    min-width: 100%;
}

#tracking-data-table th {
    background-color: rgba(255, 255, 255, 0.1);
}

#tracking-data-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#tracking-data-table td {
    word-break: break-word;
}

/* Responsive table styling */
@media (max-width: 640px) {
    #tracking-data-table {
        font-size: 0.75rem;
    }
    
    #tracking-data-table th,
    #tracking-data-table td {
        padding: 0.5rem;
    }
}

/* Social Media Icons */
.social-icon {
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icon svg {
    display: block;
}

.social-icon:hover {
    transform: scale(1.2) rotate(5deg);
    opacity: 0.8;
}

.social-icon:hover svg {
    fill: #f3f4f6 !important;
}

/* Value Cards - Uniform Height */
.value-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

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

/* Feature Cards - Uniform Height */
.feature-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(227, 30, 36, 0.15);
}

/* Button Styling */
.btn-red {
    background: linear-gradient(135deg, #EE1C25 0%, #C4161E 100%);
    transition: all 0.3s ease;
    border-radius: 1rem;
}

.btn-red:hover {
    background: linear-gradient(135deg, #FF2D3A 0%, #EE1C25 100%);
    box-shadow: 0 6px 20px rgba(238, 28, 37, 0.6);
    transform: translateY(-2px);
}

/* Image Styling - Updated for hover effects */
.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Management Message Card */
.management-card {
    transition: all 0.3s ease;
}

.management-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* How It Works Steps */
.how-it-works-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.step-item {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.step-item:hover {
    border-color: #e31e24;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.2);
}

.step-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.5rem;
    background: #e31e24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.step-title {
    font-weight: bold;
    color: #111827;
    margin-top: 0.5rem;
}

/* Featured Service Cards - Larger */
.featured-service-card {
    transition: all 0.4s ease-in-out;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.featured-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.featured-service-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f3f4f6;
    flex-shrink: 0;
}

.featured-service-image {
    transition: all 0.4s ease-in-out;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.featured-service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(227, 30, 36, 0.75);
    backdrop-filter: blur(2px);
    transition: all 0.4s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.featured-service-card:hover .featured-service-overlay {
    opacity: 1;
    visibility: visible;
}

.featured-service-text-container {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 180px;
    height: 180px;
    padding: 1.5rem;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #8B0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #a00000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: white;
    stroke: white;
}

/* ============================================
   FOOTER SOCIAL ICONS - Enhanced Styling
   ============================================ */
footer .flex.space-x-4 a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

footer .flex.space-x-4 a svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
    transition: fill 0.3s ease;
}

footer .flex.space-x-4 a:hover svg {
    fill: #ff6b6b;
}

/* Footer Email - Enhanced Visibility */
footer .text-white span {
    color: #ffffff !important;
    display: inline-block;
}

/* Footer Contact and Address - Ensure Visibility */
footer .flex.flex-col {
    min-height: auto;
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

footer .space-y-3 > div,
footer .space-y-4 > div {
    visibility: visible !important;
    opacity: 1 !important;
    display: flex !important;
}

/* Ensure footer has enough space and all columns are visible */
footer.footer-bg {
    min-height: auto;
    overflow: visible;
    padding-bottom: 2rem;
}

/* Ensure grid shows all columns properly */
footer .grid {
    display: grid !important;
}

/* Make sure email and address text is visible */
footer .text-white {
    color: #ffffff !important;
}

footer a.text-white {
    color: #ffffff !important;
    text-decoration: none;
}

footer a.text-white:hover {
    text-decoration: underline;
}

/* ============================================
   BANNER HEADING HOVER EFFECTS
   Professional hover animations for hero banners
   ============================================ */
.banner-heading-wrapper {
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease;
}

.banner-heading {
    position: relative;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.banner-heading-wrapper:hover .banner-heading {
    transform: translateY(-5px) scale(1.02);
    text-shadow: 4px 4px 16px rgba(0, 0, 0, 0.5), 0 0 20px rgba(227, 30, 36, 0.3);
    letter-spacing: 0.05em;
}

/* Subtle glow effect on hover */
.banner-heading-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.1) 0%, rgba(227, 30, 36, 0.05) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.banner-heading-wrapper:hover::before {
    opacity: 1;
}

/* Banner Subtext Styling */
.banner-subtext {
    transition: all 0.3s ease;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.banner-heading-wrapper:hover + .banner-subtext {
    transform: translateY(-2px);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Red accent text in banner */
.banner-heading .text-red-300,
.banner-subtext .text-red-300 {
    transition: all 0.3s ease;
    display: inline-block;
}

.banner-heading-wrapper:hover .banner-heading .text-red-300 {
    color: #fca5a5;
    text-shadow: 0 0 10px rgba(252, 165, 165, 0.5);
    transform: scale(1.05);
}

/* Smooth underline effect on hover */
.banner-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #e31e24, transparent);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-heading-wrapper:hover .banner-heading::after {
    transform: translateX(-50%) scaleX(1);
}

/* Additional polish for banner text */
.banner-heading-wrapper:hover {
    transform: perspective(1000px) rotateX(2deg);
}

/* ============================================
   BANNER IMAGE HOVER EFFECTS - Enhanced
   Professional zoom, brightness, and overlay effects
   ============================================ */

/* Ensure content stays above hover effects */
.about-hero-bg > *,
.services-hero-bg > * {
    position: relative;
    z-index: 2;
}

/* Additional overlay effect on hover */
.about-hero-bg::after,
.services-hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.about-hero-bg:hover::after,
.services-hero-bg:hover::after {
    opacity: 1;
}

/* Smooth parallax-like effect */
.about-hero-bg:hover {
    background-position: center 45%;
}

.services-hero-bg:hover {
    background-position: center 45%;
}

/* Enhanced shadow on hover for depth */
.about-hero-bg,
.services-hero-bg {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-hero-bg:hover,
.services-hero-bg:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2), 0 0 60px rgba(227, 30, 36, 0.1);
}

/* ============================================
   ABOUT PAGE - WHO WE ARE IMAGE HOVER EFFECTS
   Professional hover effects for the logistics image
   ============================================ */
.about-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.about-image {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.about-image-container:hover .about-image {
    transform: scale(1.1);
    filter: brightness(1.15) contrast(1.1) saturate(1.2);
}

.about-image-overlay {
    background: linear-gradient(
        135deg,
        rgba(227, 30, 36, 0.2) 0%,
        rgba(227, 30, 36, 0.1) 50%,
        transparent 100%
    );
    transition: opacity 0.5s ease;
}

.about-image-container:hover .about-image-overlay {
    opacity: 1;
}

/* Additional red glow effect on hover */
.about-image-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(227, 30, 36, 0.15) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.about-image-container:hover::before {
    opacity: 1;
}

/* Enhanced shadow on hover */
.about-image-container {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.about-image-container:hover {
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.3), 0 0 80px rgba(227, 30, 36, 0.2);
    transform: translateY(-5px);
}

/* Smooth border glow effect */
.about-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(227, 30, 36, 0.5), rgba(227, 30, 36, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
}

.about-image-container:hover::after {
    opacity: 1;
}

