/* CSS for Intelligent Cargo Solutions Page */
:root {
    --primary-color: #e62e2e;
    --primary-dark: #c52020;
    --primary-light: #ff5c5c;
    --accent-color: #ff3a3a;
    --text-color: #f8f8f8;
    --text-dark: #333333;
    --bg-dark: #0d0d0d;
    --bg-darker: #050505;
    --card-bg: #111111;
    --card-border: #222222;
    --success-color: #00c853;
    --warning-color: #ffc107;
    --danger-color: #f44336;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 6px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.1);
    --primary-glow: 0 0 10px rgba(230, 46, 46, 0.5);
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0a0a0a;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-heading {
    position: relative;
    margin-bottom: 20px;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.section-subheading {
    font-size: 1.2rem;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn i {
    margin-left: 8px;
    font-size: 0.9em;
    transition: var(--transition-fast);
}

.btn:hover i {
    transform: translateX(3px);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(230, 46, 46, 0.35);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 8px 20px rgba(230, 46, 46, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--primary-color);
    padding: 10px 28px;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(230, 46, 46, 0.35);
    transform: translateY(-2px);
}

.btn-shine {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: 0.5s;
    pointer-events: none;
}

.btn:hover .btn-shine {
    left: 200%;
    transition: 0.7s;
}

/* Effects and Animations */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes pulseGlow {
    0% { opacity: 0.5; box-shadow: 0 0 10px var(--primary-color); }
    50% { opacity: 1; box-shadow: 0 0 20px var(--primary-color); }
    100% { opacity: 0.5; box-shadow: 0 0 10px var(--primary-color); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes wave {
    0% { transform: translateX(0) translateZ(0) scaleY(1); }
    50% { transform: translateX(-25%) translateZ(0) scaleY(1.2); }
    100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

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

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

.animated-heading {
    overflow: hidden;
}

.text-line {
    display: block;
    animation: slideUp 0.8s ease forwards;
    transform: translateY(100%);
    opacity: 0;
}

.text-line:nth-child(1) {
    animation-delay: 0.1s;
}

.text-line:nth-child(2) {
    animation-delay: 0.3s;
}

.highlight, .accent-text, .highlight-text {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(230, 46, 46, 0.3);
    z-index: -1;
    transform: skewX(-15deg);
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary-color);
    z-index: 9999;
    width: 0%;
    transition: width 0.1s ease;
}

/* Cursor Tracker */
.cursor-tracker {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(230, 46, 46, 0.2);
    border: 1px solid var(--primary-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-tracker.active {
    width: 50px;
    height: 50px;
    background-color: rgba(230, 46, 46, 0.1);
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 1;
    pointer-events: none;
}

.section-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.section-bg.dark {
    background-color: var(--bg-darker);
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    pointer-events: none;
    opacity: 0.1;
    z-index: 1;
}

.shape1 {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 5%;
    background-color: var(--primary-color);
    animation: float 10s ease-in-out infinite;
}

.shape2 {
    width: 200px;
    height: 200px;
    top: 10%;
    right: 10%;
    background-color: var(--accent-color);
    animation: float 12s ease-in-out infinite 1s;
}

.shape3 {
    width: 150px;
    height: 150px;
    bottom: 10%;
    right: 20%;
    background-color: var(--primary-dark);
    animation: float 8s ease-in-out infinite 0.5s;
}

/* Glow Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
    background-color: rgba(230, 46, 46, 0.2);
    animation: pulseGlow 10s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -200px;
    background-color: rgba(230, 46, 46, 0.15);
    animation: pulseGlow 15s ease-in-out infinite 2s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(230, 46, 46, 0.1);
    animation: pulseGlow 12s ease-in-out infinite 1s;
}

/* Circuit Lines & Nodes */
.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.circuit-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    height: 1px;
    opacity: 0.3;
}

.circuit-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    opacity: 0.5;
    animation: pulseGlow 3s ease-in-out infinite;
}

.line-1 {
    top: 30%;
    left: 0;
    width: 40%;
}

.line-2 {
    bottom: 40%;
    right: 0;
    width: 30%;
}

.node-1 {
    top: 30%;
    left: 40%;
}

.node-2 {
    bottom: 40%;
    right: 30%;
}

/* Particle Effects */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background-color: white;
    animation: float ease-in-out infinite;
}

/* Wave Background */
.bg-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    overflow: hidden;
    z-index: 1;
    opacity: 0.15;
    pointer-events: none;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%23e62e2e" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: 1440px 320px;
    animation: wave 25s linear infinite;
}

.wave-1 {
    opacity: 0.8;
    animation-duration: 15s;
}

.wave-2 {
    opacity: 0.5;
    animation-duration: 10s;
}

/* Loading Animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes dashOffset {
    from { stroke-dashoffset: 150; }
    to { stroke-dashoffset: 0; }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 150px 0 100px;
    overflow: hidden;
}

.ics-hero {
    background-color: var(--bg-darker);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
  
}

.hero-content {
    width: 50%;
    z-index: 10;
    padding-right: 30px;
}

.hero-image {
    width: 50%;
    position: relative;
    z-index: 10;
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(230, 46, 46, 0.1), transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.badge-container {
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(230, 46, 46, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1.0rem;
    margin-bottom: 30px;
    color: #ffffff;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Dashboard Mockup */
.dashboard-mockup {
    position: relative;
    width: 100%;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    z-index: 10;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

.dashboard-content {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* Maintain aspect ratio */
    overflow: hidden;
}

.dashboard-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.dashboard-mockup:hover .dashboard-img {
    opacity: 0.7;
}

/* Network Lines Animation */
.network-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform-origin: left center;
    animation: lineGrow 3s ease-out infinite;
}

.line::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 10px var(--primary-color);
}

.line.vertical {
    width: 2px;
    height: var(--line-length);
    background: linear-gradient(180deg, transparent, var(--primary-color), transparent);
    transform-origin: center top;
}

.line.vertical::after {
    bottom: 0;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
}

@keyframes lineGrow {
    0% {
        width: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        width: 100%;
        opacity: 0;
    }
}

/* Tracking Animation */
.tracking-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.svg-loader {
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.svg-loader.loaded {
    opacity: 1;
}

/* Overview Section */
.overview-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--bg-dark);
    z-index: 2;
}

.overview-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.overview-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.overview-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    width: calc(33.333% - 20px);
    min-width: 280px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

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

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.overview-card p {
    color: #cccccc;
    font-size: 0.95rem;
}

/* Features Section */
.features-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--bg-dark);
    z-index: 2;
}

.features-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 40px;
}

.feature-item.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
    max-width: 540px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(230, 46, 46, 0.1);
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(230, 46, 46, 0.3) 0%, rgba(230, 46, 46, 0) 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-title {
    font-size: 24px;
    margin-bottom: 15px;
}

.feature-desc {
    color: #cccccc;
    margin-bottom: 20px;
    font-size: 16px;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #cccccc;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 14px;
    height: 14px;
    background-color: rgba(230, 46, 46, 0.2);
    border-radius: 50%;
    border: 1px solid var(--primary-color);
}

.feature-visual {
    flex: 1;
    position: relative;
    height: 400px;
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-visual:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-animation {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Benefits Section */
.benefits-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--bg-darker);
    z-index: 2;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.benefit-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
    transition: width 0.3s ease;
}

.benefit-card:hover::before {
    width: 5px;
}

.benefit-icon {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.benefit-desc {
    color: #cccccc;
    font-size: 15px;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--bg-dark);
    z-index: 2;
}

.cta-container {
    background: linear-gradient(145deg, rgba(17, 17, 17, 0.9), rgba(25, 25, 25, 0.9));
    border-radius: 20px;
    padding: 60px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--card-border);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(230, 46, 46, 0.05), transparent 70%);
    z-index: -1;
}

.cta-title {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Media Queries */
@media (max-width: 1200px) {
    h1 {
        font-size: 3rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-content, .hero-image {
        width: 50%;
    }
    
    .feature-visual {
        height: 350px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .badge-container {
        justify-content: center;
        display: flex;
    }
    
    .feature-item {
        flex-direction: column;
        gap: 30px;
    }
    
    .feature-item.reverse {
        flex-direction: column;
    }
    
    .feature-content {
        max-width: 100%;
    }
    
    .cta-container {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .feature-visual {
        height: 300px;
    }
    
    .dashboard-mockup {
        transform: perspective(1000px) rotateY(0) rotateX(0);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 120px 0 70px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .btn-outline {
        margin-top: 15px;
    }
    
    .feature-title {
        font-size: 20px;
    }
    
    .feature-visual {
        height: 250px;
    }
    
    .cta-title {
        font-size: 26px;
    }
    
    .cta-desc {
        font-size: 16px;
    }
}
