/* --- Custom Properties & Resets --- */
:root {
    --color-bg-dark: #0a0a0a;
    --color-bg-black: #000000;
    --color-bg-card: #161616;
    --color-primary-red: #d32f2f;
    /* Translogistic Red */
    --color-primary-red-hover: #b71c1c;
    --color-secondary-blue: #70baff;
    /* Meza Blue */
    --color-text-light: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-whatsapp: #25D366;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.3s ease;
    --transition-slow: 0.6s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 5rem 0;
}

.section-dark {
    background-color: var(--color-bg-dark);
}

.section-black {
    background-color: var(--color-bg-black);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--color-text-light);
}

span {
    color: var(--color-secondary-blue);
}

h2 span {
    color: var(--color-primary-red);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--color-primary-red);
    color: var(--color-text-light);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-primary-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.6);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-text-light);
    color: var(--color-text-light);
}

.btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-bg-black);
    transform: translateY(-3px);
}

.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    filter: brightness(350%);
}

/* --- Navigation --- */
.header {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 140px;
    padding: 10px 0;
}

.logo {
    height: 125px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-red);
    transition: var(--transition-fast);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
}

.nav-cta {
    background-color: var(--color-primary-red);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.nav-cta:hover {
    background-color: var(--color-primary-red-hover);
    transform: scale(1.05);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-text-light);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    /* Offset for header */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Using an abstract gradient if no clear background image initially available */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(20, 20, 20, 0.8) 100%),
        url('4.jpeg') center/cover no-repeat;
    background-attachment: fixed;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-title span {
    color: var(--color-secondary-blue);
    text-shadow: 0 0 20px rgba(112, 186, 255, 0.4);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

/* --- Titles --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-secondary-blue);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-description {
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
}

/* --- About Us Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.feature-box {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary-red);
    transition: transform var(--transition-fast);
}

.feature-box:hover {
    transform: translateX(10px);
}

.feature-icon {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--color-primary-red);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.feature-box h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 50%;
    height: 50%;
    border-top: 5px solid var(--color-secondary-blue);
    border-left: 5px solid var(--color-secondary-blue);
    border-radius: 10px 0 0 0;
    z-index: -1;
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 50%;
    height: 50%;
    border-bottom: 5px solid var(--color-primary-red);
    border-right: 5px solid var(--color-primary-red);
    border-radius: 0 0 10px 0;
    z-index: -1;
}

.rounded-image {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 4/3;
    display: block;
}

.shadow {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* --- How it Works Section --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background-color: var(--color-bg-card);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary-red), var(--color-secondary-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-number {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.step-card p {
    color: var(--color-text-muted);
    position: relative;
    z-index: 1;
}

/* --- Gallery Section --- */
.masonry-grid {
    column-count: 3;
    column-gap: 1.5rem;
    margin-top: 3rem;
}

.grid-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.grid-item img {
    width: 100%;
    min-height: 200px;
    display: block;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.grid-item:hover img {
    transform: scale(1.05);
}

.grid-item:hover::after {
    opacity: 1;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-bg-black);
    padding: 4rem 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 125px;
    margin-bottom: 1.5rem;
}

.footer-info p {
    color: var(--color-text-muted);
}

.footer-contact h3,
.footer-social h3 {
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-contact h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-primary-red);
}

.footer-contact p {
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.social-icons a:hover {
    background-color: var(--color-primary-red);
    transform: translateY(-3px);
}

.social-icons img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: invert(1);
    /* Ensure icons are white if they are black initially */
}

.social-icons a:hover img {
    filter: invert(1);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.95);
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- Floating WhatsApp --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition-fast);
    animation: bounce 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #1EBE5D;
}

.floating-whatsapp img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(350%);
}

/* --- Animations & Utilities --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        /* image on top */
        margin-bottom: 2rem;
    }

    .masonry-grid {
        column-count: 2;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 140px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        padding: 2rem 0;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-cta {
        display: none;
        /* hide in normal flow, maybe show in menu */
    }

    .masonry-grid {
        column-count: 1;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-padding {
        padding: 3rem 0;
    }
}