/* ========================================
   GENERAL STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1f2937;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero-section {
    background-repeat: none;
    background-position: center;
    background-size: cover;
    background-image: url("../images/bg-hero.png");
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(30, 58, 95, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Logo */
.logo-container {
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.logo-frotcom {
    color: #dc2626;
}

.logo-io {
    color: white;
}

.logo-subtitle {
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: -2px;
    font-weight: 500;
}

/* Hero Content */
.hero-content {
    padding: 60px 0;
    animation: fadeInLeft 1s ease-out;
}

.hero-label {
    font-size: 14px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-title {
    font-size: 55px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    max-width: 480px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary-custom {
    background: #dc2626;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.btn-primary-custom:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.4);
}

.btn-icon-custom {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-icon-custom:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}


/* Truck Image Container */
.hero-image-container {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.truck-placeholder {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.truck-image {
    /*  width: 100%; */
    /* max-width: 600px; */
    margin: 0 auto;
}

.truck-image {
  width: 1200px;
  margin: 0 auto;
  position: absolute;
}

/* Mobile breakpoint */
@media (max-width: 767px) {
    .truck-image {
        width: 600px !important;
        max-width: 100%;
        position: relative; /* optional but usually needed */
    }

    .hero-content{
        padding-left: 30px !important;
        padding-right: 30px  !important;
    }

    .btn.btn-icon-custom{
        display: none;
    }

}

.truck-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
    z-index: 999;
}

.floating-card.card-1 {
    top: 10%;
    left: 5%;
    min-width: 160px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 15%;
    right: 10%;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation-delay: 0.5s;
}

.floating-card.card-3 {
    bottom: 20%;
    right: 5%;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation-delay: 1s;
}

.card-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 12px;
}

.card-label-small {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
}

.donut-chart {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(#dc2626 0% 70%, #e5e7eb 70% 100%);
    margin: 0 auto 12px;
    position: relative;
}

.donut-chart::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.chart-legend {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #1f2937;
}

.legend-color {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.icon-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #1f2937;
}

.icon-badge.red {
    background: #fee2e2;
    color: #dc2626;
}

/* Track Assistant Button */
.track-assistant-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: white;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    z-index: 10;
}

.track-assistant-btn:hover {
    background: #f9fafb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-login{
    background-color: white;
    color: #000000;
    border: none;
    font-size: 14px;
    z-index: 9999;

}

.btn-login:hover{
    background-color: #CF092D;
    color: #ffffff;
}

.hero-section > .container:first-of-type {
    position: relative;
    z-index: 10;
}

.btn-login {
    position: relative;
    z-index: 11;
}

/* Login Modal */

#loginModal .modal-content {
    border-radius: 18px;
    padding: 10px 0 25px 0;
    border: none;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    animation: modalFadeUp 0.4s ease;
}

#loginModal .modal-title {
    font-weight: 700;
    font-size: 22px;
    color: #0f172a;
}

#loginModal .form-control {
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 15px;
    transition: all 0.25s ease;
}

#loginModal .form-control:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,0.15);
    background: white;
}

#loginModal .form-label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f2937;
}

#loginModal a.text-primary {
    color: #dc2626 !important;
    font-weight: 500;
}

#loginModal a.text-primary:hover {
    text-decoration: underline;
}

#loginModal .btn-primary {
    background: #dc2626;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.25);
    transition: all 0.3s ease;
}

#loginModal .btn-primary:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(220, 38, 38, 0.35);
}

#loginModal .btn-close {
    filter: invert(35%);
}

/* Animation */
@keyframes modalFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* ========================================
   KEY REPORTING AREAS SECTION
   ======================================== */

.reporting-areas-section {
    background: white;
    padding: 100px 0;
}

.section-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: #2D2D2D;
    font-weight: 400;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-label span{
    border: 1px solid #2D2D2D;
    border-radius: 19px;
    padding: 3px 10px;
}

.section-title {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.3;
    color: #0f172a;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

/* Feature Cards */
.feature-card {
    padding: 32px 24px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.feature-card:hover .feature-icon.red {
    background: #dc2626;
    color: white;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.feature-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   FLEET PERFORMANCE SECTION
   ======================================== */

.fleet-performance-section {
    background-image: url("../images/bg-kpis.png");
    background-repeat: none;
    background-position: center;
    background-size: cover;
    padding: 100px 0;
}



.section-title-large {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.4;
    color: #0f172a;
    text-align: left;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.text-highlight {
    color: #2563eb;
}

/* Insight Cards */
.insight-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
}

.chart-placeholder {
    border-radius: 12px;
    overflow: hidden;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder img {
    width: 100%;
    height: auto;
}

/* ========================================
   HOW FLEETPULSE CAN HELP SECTION
   ======================================== */

.help-section {
    background: white;
    padding: 100px 0;
}

.section-title-center {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    color: #0f172a;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

/* Benefit List */
.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.benefit-item {
    display: flex;
    gap: 24px;
    animation: fadeInUp 0.6s ease-out;
}

.benefit-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background: #fee2e2;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s ease;
}

.benefit-item:hover .benefit-icon {
    background: #dc2626;
    color: white;
    transform: scale(1.1);
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0px;
    line-height: 1.3;
}

.benefit-description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* Dashboard Screenshot */
.dashboard-screenshot {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-screenshot:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

.dashboard-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    background: linear-gradient(135deg, #262626 0%, #551414 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.btn-light-custom {
    background: white;
    color: #1f2937;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.btn-light-custom:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 255, 255, 0.3);
}

.btn-icon-light {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-icon-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) rotate(90deg);
}

/* ========================================
   FOOTER SECTION
   ======================================== */

.footer-section {
    background: #f9fafb;
    padding: 50px 0;
    border-top: 1px solid #e5e7eb;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.footer-logo .logo-frotcom {
    color: #dc2626;
}

.footer-logo .logo-io {
    color: #1f2937;
}

.footer-text {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.footer-contact a {
    font-size: 16px;
    font-weight: 500;
    color: #CF092D;
    margin-bottom: 8px;
    text-decoration: none;
}

.footer-contact a:hover{
    color: #000000;
}

.footer-address {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

.footer-address strong{
    color: #000000;
}

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

@media (max-width: 991px) {
    .hero-title {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .section-title-large {
        font-size: 28px;
    }
    
    .cta-title {
        font-size: 36px;
    }
    
    .hero-image-container {
        margin-top: 60px;
    }
    
    .dashboard-screenshot {
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
    }
    
    .hero-content {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-title-large {
        font-size: 24px;
        text-align: left;
    }
    
    .section-title-center {
        font-size: 28px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .cta-description {
        font-size: 16px;
    }
    
    .reporting-areas-section,
    .fleet-performance-section,
    .help-section {
        padding: 60px 0;
    }

 
    
    .cta-section {
        padding: 60px 0;
    }
    
    .floating-card {
        display: none;
    }
    
    .truck-placeholder {
        min-height: 300px;
    }
    
    .track-assistant-btn {
        top: 16px;
        right: 16px;
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .btn-primary-custom {
        width: 100%;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn-light-custom {
        width: 100%;
    }
    
    .footer-section .text-md-end {
        text-align: left !important;
        margin-top: 24px;
    }
}

@media (max-width: 575px) {
    .hero-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .feature-card,
    .insight-card {
        padding: 24px;
    }
    
    .benefit-item {
        flex-direction: column;
        gap: 16px;
    }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

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

.no-select {
    user-select: none;
}

.cursor-pointer {
    cursor: pointer;
}