/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    margin-top: calc(var(--utility-bar-height) + var(--header-height));
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 800px;
    margin-top: -80px;
    /* Offset for header + tracking box balance */
}

.slide-content h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: slideUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 1.6rem;
    margin-bottom: 30px;
    animation: slideUp 1s ease 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.slide-content .btn-group {
    animation: slideUp 1s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    gap: 15px;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slider-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    pointer-events: none;
}

.slider-controls button {
    pointer-events: all;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: transform 0.3s, background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.prev-slide,
.next-slide {
    /* positioned via flex container - no absolute offsets needed */
}

/* Tracking Section (Floating Modular) */
.tracking-section {
    position: relative;
    z-index: 10;
    margin-top: -140px;
    margin-bottom: 80px;
    padding: 0 20px;
}

.tracking-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 0;
    border-radius: 20px;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5);
    max-width: 950px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Tab Navigation */
.tracking-tabs {
    display: flex;
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a8a 100%);
    position: relative;
    padding: 0;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 30px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tab-btn:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.tab-btn.active {
    color: var(--white);
}

.tab-btn i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.tab-btn:hover i,
.tab-btn.active i {
    transform: scale(1.15);
}

/* Tab Indicator */
.tab-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 33.333%;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 4px 4px 0 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px var(--secondary-color);
}

/* Tab Content */
.tab-content-wrapper {
    position: relative;
    min-height: 200px;
}

.tab-content {
    padding: 40px;
    display: none;
    animation: fadeInUp 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-header {
    margin-bottom: 25px;
}

.tab-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.tab-header p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Enhanced Input Styling */
.input-wrapper {
    position: relative;
    flex: 1;
}

.input-wrapper i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 18px 20px 18px 50px;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8f9fb;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(232, 25, 33, 0.15);
}

.input-wrapper input:focus+i,
.input-wrapper:focus-within i {
    color: var(--primary-color);
}

.input-wrapper select {
    cursor: pointer;
    appearance: none;
    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='%23E81921' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

/* Animated Button */
.btn-animated {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 35px;
    font-size: 1rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.btn-animated span {
    position: relative;
    z-index: 1;
}

.btn-animated i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.btn-animated:hover i {
    transform: translateX(5px);
}

.btn-animated::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-animated:hover::before {
    left: 100%;
}

/* Form Layouts */
.tracking-form .input-group {
    display: flex;
    gap: 15px;
}

.quote-grid,
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 15px;
    align-items: end;
}

/* Quick Links */
.quick-links {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e8ecef;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.quick-links span {
    color: var(--text-light);
    font-size: 0.9rem;
}

.quick-links a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(232, 25, 33, 0.1);
    transition: all 0.3s ease;
}

.quick-links a:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-content i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-content h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.5;
}

.read-more i {
    font-size: 1.2rem;
    transform: translateY(11px);
}

.read-more:hover {
    color: var(--secondary-color);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .hero-slider {
        margin-top: 60px;
        /* Add margin for mobile navbar */
        height: 80vh;
        /* Reduce height on mobile */
    }

    .slide-content h1 {
        font-size: 2.5rem;
    }

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

    .slide-content {
        margin-top: -40px;
    }

    .tracking-section {
        margin-top: -50px;
        padding: 0 10px;
    }

    .tracking-box {
        padding: 20px;
    }

    .tracking-form .input-group {
        flex-direction: column;
    }

    .tab-content {
        padding: 20px;
        min-height: 300px;
    }

    .tab-header h3 {
        font-size: 1.5rem;
        white-space: nowrap;
    }

    .tab-header h3,
    .tab-header p {
        max-width: none;
        width: 100%;
    }

    .quick-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .quick-links a:nth-child(3) {
        grid-column: 1 / -1;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

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

    .industry-grid {
        grid-template-columns: 1fr;
    }

    /* Slider controls: place lower and reduce size on mobile */
    .slider-controls {
        bottom: 20px;
        padding: 0 20px;
    }

    .slider-controls button {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Slider controls position in mobile to avoid overlap */
.slider-controls .prev-slide {
    left: 10px;
}

.slider-controls .next-slide {
    right: 10px;
}
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-card {
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(232, 25, 33, 0.1);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: background-color 0.3s, color 0.3s;
}

.feature-card:hover .icon-box {
    background-color: var(--secondary-color);
    color: var(--white);
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Stats Section */
.stats-section {
    background-image: url('../assets/images/hero-ship.png');
    /* Reuse asset */
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    position: relative;
    color: var(--white);
    text-align: center;
}

.stats-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.stat-item .counter {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Industry Solutions */
.industry-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.industry-card {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    color: var(--white);
    display: flex;
    align-items: flex-end;
    cursor: pointer;
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3));
    z-index: 1;
    transition: background 0.3s;
}

.industry-card:hover .industry-overlay {
    background: linear-gradient(to top, rgba(232, 25, 33, 0.9), rgba(232, 25, 33, 0.3));
}

.industry-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.industry-card:hover .industry-content {
    transform: translateY(0);
}

.industry-content i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--white);
}

.industry-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.industry-content p {
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s;
    height: 0;
    overflow: hidden;
}

.industry-card:hover .industry-content p {
    opacity: 1;
    height: auto;
}

/* CTA Section */
.cta-section {
    padding: 60px 0;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e3f2fd;
    padding: 40px;
    border-radius: 10px;
    flex-wrap: wrap;
    gap: 20px;
}

.cta-content h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cta-content p {
    color: var(--text-dark);
}

.cta-btn {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .cta-container {
        flex-direction: column;
        text-align: center;
    }

    .cta-btn {
        justify-content: center;
    }

    .cta-btn a {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   ENHANCED ANIMATIONS & MICRO-INTERACTIONS
   ======================================== */

/* Service Card Hover Enhancement */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Feature Card Animation */
.feature-card {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-card:hover {
    background: linear-gradient(135deg, rgba(232, 25, 33, 0.05) 0%, rgba(74, 105, 189, 0.05) 100%);
    transform: translateY(-8px);
}

/* Icon Box Pulse Animation */
.feature-card:hover .icon-box {
    animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Industry Card 3D Transform Enhancement */
.industry-card {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

/* Read More Arrow Animation */
.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(6px);
}

/* Input Focus Glow */
.input-wrapper.focused input,
.input-wrapper.focused select {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(232, 25, 33, 0.15),
        0 4px 12px rgba(232, 25, 33, 0.1);
}

.input-wrapper.focused i {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Stats Number Glow */
.stat-item .counter {
    text-shadow: 0 0 30px rgba(232, 25, 33, 0.5);
    transition: text-shadow 0.3s ease;
}

.stat-item:hover .counter {
    text-shadow: 0 0 40px rgba(232, 25, 33, 0.8);
}

/* Button Ripple Effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

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

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Smooth Page Load Animation */
@keyframes pageLoad {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body {
    animation: pageLoad 0.5s ease;
}

/* Footer Link Underline Animation */
.footer-col a {
    position: relative;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.footer-col a:hover::after {
    width: 100%;
}

/* CTA Section Gradient Animation */
.cta-container {
    background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 50%, #e0f7fa 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

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

    50% {
        background-position: 100% 50%;
    }
}

/* Slider Dots Animation */
.slider-dots button {
    transition: all 0.3s ease;
}

.slider-dots button:hover {
    transform: scale(1.2);
}

.slider-dots button.active {
    animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(232, 25, 33, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(232, 25, 33, 0);
    }
}