/* 
    RIGZ Logistics V2 Premium CSS
   A modern, dark-themed, glassmorphism UI 
*/

:root {
    --bg-dark: #070B14;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --accent-gradient: linear-gradient(135deg, #E8C872 0%, #C99A45 100%);
    --accent-glow: rgba(232, 200, 114, 0.4);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navigation - Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(7, 11, 20, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 120px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    box-shadow: 0 10px 20px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    padding: 11px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    border-color: #E8C872;
    background: rgba(232, 200, 114, 0.1);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

.w-full { width: 100%; }

/* Hero Section & Carousel */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-slider-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.05);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    transition: opacity 1.5s ease-in-out, transform 5s linear;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, #070B14 0%, rgba(7, 11, 20, 0.8) 50%, rgba(7, 11, 20, 0.4) 100%);
    z-index: -1;
}

.carousel-indicators {
    position: absolute;
    bottom: 120px;
    left: 5%;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent-gradient);
    width: 60px;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(232, 200, 114, 0.1);
    border: 1px solid rgba(232, 200, 114, 0.3);
    color: #E8C872;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    margin-bottom: 24px;
    max-width: 800px;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Page Header (Internal Pages) */
.page-header {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    background: linear-gradient(135deg, rgba(7,11,20,0.9) 0%, rgba(3,4,8,1) 100%);
    border-bottom: 1px solid var(--border-glass);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/cta-bg.jpg') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-header .container {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 10px;
}

.breadcrumb {
    color: var(--text-secondary);
    font-size: 1.1rem;
}
.breadcrumb a {
    color: #E8C872;
    text-decoration: none;
    transition: color 0.3s;
}
.breadcrumb a:hover {
    color: white;
}

/* Legal Content */
.legal-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 5%;
}

.legal-content h1, .legal-content h2, .legal-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: white;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.legal-content ul, .legal-content ol {
    color: var(--text-secondary);
    margin-bottom: 20px;
    padding-left: 20px;
    font-size: 1.1rem;
}

.legal-content li {
    margin-bottom: 10px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 120px; /* Moved up to avoid overlapping with negative margin features */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.8;
    z-index: 15;
}

.scroll-indicator i {
    font-size: 2rem;
    color: #E8C872;
    display: block;
    animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(15px); }
    60% { transform: translateY(7px); }
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Generic Section Setup */
section {
    padding: 100px 5%;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact .split-layout {
    grid-template-columns: 1fr 1.8fr;
    align-items: start;
}

.section-subtitle {
    color: #E8C872;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 24px;
}

.section-text {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

/* Features Glass Cards */
.features {
    background: var(--bg-dark);
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-top: 0;
}

.feature-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 40px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(232, 200, 114, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.icon-wrap {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(232, 200, 114, 0.1);
    color: #E8C872;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.glass-card:hover .icon-wrap {
    background: var(--accent-gradient);
    color: white;
}

.glass-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.glass-card p {
    color: var(--text-secondary);
}

/* About Layout */
.check-list {
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.check-list li i {
    color: #E8C872;
    font-size: 1.2rem;
}

.relative { position: relative; }

.img-wrapper {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.05);
    transition: transform 0.8s;
}

.img-wrapper:hover img {
    transform: scale(1);
}

.floating-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
}

.badge-icon {
    font-size: 2.5rem;
    color: #E8C872;
}

.badge-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.badge-text span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    position: relative;
    padding: 80px 5%;
    background: linear-gradient(135deg, rgba(232, 200, 114,0.1) 0%, rgba(201, 154, 69,0.1) 100%);
    text-align: center;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../images/cta-bg.jpg') center/cover;
    opacity: 0.15;
    z-index: -1;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta-content .theme-btn {
    margin-top: 30px;
}

/* Service Grids */
.more-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(232, 200, 114, 0.2);
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: #E8C872;
    margin-bottom: 20px;
    display: inline-block;
}

/* Contact Form */
.contact {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #030408 100%);
    position: relative;
    padding-bottom: 150px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #E8C872;
    background: rgba(232, 200, 114, 0.1);
    width: 60px; height: 60px;
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 4px;
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-secondary);
}

.glass-form {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    padding: 50px;
    border-radius: 30px;
}

.glass-form h3 {
    font-size: 2rem;
    margin-bottom: 30px;
}

.modern-form .input-group {
    margin-bottom: 20px;
}

.modern-form input,
.modern-form select,
.modern-form textarea {
    width: 100%;
    padding: 16px 24px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.modern-form input:focus,
.modern-form select:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: #E8C872;
    background: rgba(0,0,0,0.5);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    background: #030408;
    padding: 40px 5%;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #E8C872;
}

/* Responsive */
@media (max-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .floating-badge {
        left: 20px;
        bottom: -20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .glass-form {
        padding: 30px;
    }
    
    .features {
        margin-top: 50px;
    }
}

/* Animation Utilities for JS Reveal */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}
