/* 
 * Project: Ram Way Transport Digital Marketing Redesign
 * Theme: Future Tech / Cyber Data
 * Version: 2.0
 */

/* =========================================
   1. VARIABLES & ROOT SETTINGS
   ========================================= */
:root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-panel: #0a0b10;
    --bg-panel-translucent: rgba(10, 11, 16, 0.85);

    --primary-color: #00f3ff;
    /* Cyan Neon */
    --primary-glow: rgba(0, 243, 255, 0.5);
    --secondary-color: #bc13fe;
    /* Purple Neon */
    --secondary-glow: rgba(188, 19, 254, 0.5);
    --accent-color: #ffe600;
    /* Cyber Yellow */

    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --text-header: #ffffff;

    --border-light: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;

    /* Spacing */
    --section-spacing: 120px;
    --container-width: 1400px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. RESET & GLOBAL STYLES
   ========================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    font-weight: 500;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-header);
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* =========================================
   3. UTILITY CLASSES & ANIMATIONS
   ========================================= */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* Keyframe Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* =========================================
   4. HEADER STYLES (STRICTLY CONSISTENT)
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-light);
    padding: 15px 0;
    transition: all 0.4s ease;
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
    filter: brightness(0) invert(1);
    /* Ensure logo is white if input is black */
}

.main-nav .nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger-inner {
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: #fff;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 0.1s ease-in-out;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: #fff;
    transition: transform 0.2s ease-in-out;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    top: 10px;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-dark);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.5s ease-in-out;
    background-image: radial-gradient(circle at center, #1a1a2e 0%, #000 100%);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease;
}

.mobile-menu.active .mobile-nav-list li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #fff;
}

/* =========================================
   5. HERO SECTION (3D VIBE)
   ========================================= */
.hero-section {
    position: relative;
    /* height: 100vh; */
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    display: block;
    color: var(--primary-color);
    font-family: var(--font-heading);
    letter-spacing: 4px;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 600px;
    border-left: 3px solid var(--secondary-color);
    padding-left: 20px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   6. SERVICES SECTION (CARDS)
   ========================================= */
.section-padding {
    padding: var(--section-spacing) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    padding: 40px;
    position: relative;
    transition: var(--transition-fast);
    overflow: hidden;
    group: hover;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
}

.service-features {
    margin-top: 20px;
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-features li i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* =========================================
   7. INTERACTIVE ROI CALCULATOR
   ========================================= */
.calculator-section {
    background: linear-gradient(135deg, #0a0b10 0%, #111 100%);
    position: relative;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.calculator-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    background: var(--bg-panel-translucent);
    border: 1px solid var(--border-light);
    padding: 50px;
    backdrop-filter: blur(10px);
}

.calc-inputs {
    flex: 1;
    min-width: 300px;
}

.calc-results {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.1) inset;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 10px;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.input-range-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

input[type="range"] {
    flex: 1;
    height: 4px;
    background: var(--text-muted);
    outline: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

.range-value {
    width: 80px;
    background: #000;
    border: 1px solid var(--border-light);
    color: #fff;
    padding: 5px;
    text-align: center;
}

.result-box {
    text-align: center;
    margin-bottom: 30px;
}

.result-box h4 {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 5px;
}

.result-value {
    font-size: 3.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
}

/* =========================================
   8. PROCESS SECTION (TIMELINE)
   ========================================= */
.process-timeline {
    position: relative;
    padding: 40px 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-light);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    width: 45%;
    background: var(--bg-panel);
    padding: 30px;
    border: 1px solid var(--glass-border);
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 15px var(--primary-glow);
    z-index: 2;
}

.timeline-number {
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    font-family: var(--font-heading);
}

/* =========================================
   9. INDUSTRIES & TESTIMONIALS
   ========================================= */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.industry-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    padding: 30px 20px;
    text-align: center;
    transition: var(--transition-fast);
}

.industry-card:hover {
    background: var(--primary-color);
    color: #000;
}

.industry-card i {
    font-size: 2rem;
    margin-bottom: 15px;
}

.industry-card h4 {
    margin: 0;
    font-size: 1.1rem;
}

/* Testimonial Slider (Simple CSS/JS implementation) */
.testimonial-wrapper {
    overflow: hidden;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 100%;
    padding: 20px;
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-text {
    font-size: 1.5rem;
    font-style: italic;
    margin-bottom: 30px;
    color: #fff;
}

.author-info h5 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================================
   10. LEGAL & CONTACT PAGES
   ========================================= */
.page-header-section {
    padding: 180px 0 80px;
    background: radial-gradient(circle at center top, #1a1a2e 0%, var(--bg-dark) 70%);
    text-align: center;
}

.legal-content {
    background: var(--bg-dark);
    padding-bottom: 100px;
}

.legal-section {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    padding: 40px;
    margin-bottom: 30px;
}

.legal-section h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
}

.legal-section p {
    margin-bottom: 15px;
    color: #ccc;
}

.contact-section-standalone {
    padding: 80px 0;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form-wrapper {
    flex: 1;
    min-width: 300px;
    background: var(--bg-panel);
    padding: 40px;
    border: 1px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #000;
    border: 1px solid var(--border-light);
    color: #fff;
    font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* =========================================
   11. FOOTER (STRICTLY CONSISTENT)
   ========================================= */
.footer {
    background: #020202;
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo img {
    width: 180px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col p {
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-link:hover {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal-links a {
    margin-left: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal-links a:hover {
    color: var(--primary-color);
}

/* =========================================
   12. MEDIA QUERIES
   ========================================= */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .process-timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 50px;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-dot {
        left: 20px;
        transform: none;
    }
}

@media (max-width: 768px) {

    .main-nav,
    .header-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        height: auto;
        padding: 150px 0 80px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-wrapper {
        flex-direction: column;
    }

    .calc-inputs,
    .calc-results {
        width: 100%;
    }
}

/* Loading Animation */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-cube {
    width: 50px;
    height: 50px;
    position: relative;
    transform-style: preserve-3d;
    animation: cube-spin 2s infinite linear;
}

.loader-text {
    margin-top: 30px;
    font-family: var(--font-heading);
    color: var(--primary-color);
    letter-spacing: 3px;
    animation: pulse-glow 1s infinite;
}

@keyframes cube-spin {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.face {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(0, 243, 255, 0.2);
    border: 1px solid var(--primary-color);
}

.front {
    transform: translateZ(25px);
}

.back {
    transform: translateZ(-25px);
}

.right {
    transform: rotateY(90deg) translateZ(25px);
}

.left {
    transform: rotateY(-90deg) translateZ(25px);
}

.top {
    transform: rotateX(90deg) translateZ(25px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(25px);
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: var(--bg-panel);
    border: 1px solid var(--primary-color);
    padding: 40px;
    max-width: 500px;
    text-align: center;
    position: relative;
}

.popup-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.popup-close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
}