/* Main Variables */
:root {
    --color-primary: #002F5D;    /* Dark Navy Blue */
    --color-accent: #FFD900;     /* Bright Yellow */
    --color-brand: #00A651;      /* Mailo Green */
    --color-background: #E8F3FF; /* Soft Light Blue */
    --color-white: #FFFFFF;      /* White */
    --color-text: #333333;       /* Dark Gray Text */
    --color-text-secondary: #666666; /* Medium Gray */
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation */
header {
    background-color: var(--color-primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-accent);
}

.tracking-btn {
    padding: 0.5rem 1rem;
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    min-width: fit-content;
}

.tracking-btn:hover {
    background-color: #e6c300;
}

.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--color-text);
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--color-background);
    color: var(--color-primary);
}

/* Search Form */
.tracking-search {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    gap: 0.5rem;
}

.tracking-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--color-white);
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.tracking-input:focus {
    border-color: var(--color-accent);
}

.tracking-btn {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tracking-btn:hover {
    background-color: #e6c300;
    transform: translateY(-1px);
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    gap: 1rem;
}

.auth-buttons a {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary) !important;
}

.btn-primary:hover {
    background-color: #e6c300;
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    background: var(--color-white);
    padding: 4rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--color-primary);
}

.hero-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: var(--color-text);
    max-width: 450px;
}

.hero-image {
    flex: 0 1 700px;
    padding: 0 1rem;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-yellow {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-accent);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-yellow:hover {
    background-color: #e6c300;
    transform: translateY(-2px);
}

/* Services Section */
.services-section {
    padding: 4rem 0;
    background-color: var(--color-white);
    overflow: hidden;
}

.services-slider {
    margin: 0 -1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.services-slider.slick-initialized {
    opacity: 1;
    visibility: visible;
}

.service-slide {
    padding: 1rem;
}

.service-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 0.5rem;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    display: block;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.service-item h3 {
    color: var(--color-primary);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Slick Slider Custom Styles */
.slick-prev,
.slick-next {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.slick-prev {
    left: -20px;
}

.slick-next {
    right: -20px;
}

.slick-prev:hover,
.slick-next:hover {
    background-color: var(--color-primary);
    transform: scale(1.1);
}

.slick-prev:before,
.slick-next:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 18px;
    opacity: 1;
}

.slick-prev:before {
    content: "\f104";
}

.slick-next:before {
    content: "\f105";
}

.slick-dots {
    bottom: -40px;
}

.slick-dots li button:before {
    font-size: 10px;
    color: var(--color-primary);
    opacity: 0.3;
}

.slick-dots li.slick-active button:before {
    opacity: 1;
}

/* Why Choose Section */
.why-choose {
    padding: 4rem 0;
    background-color: var(--color-white);
}

.why-choose h2 {
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    position: relative;
}

.why-choose h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.features {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    gap: 2rem;
}

.left-column {
    flex: 0 0 70%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dual-images {
    display: flex;
    gap: 2rem;
}

.dual-images .image-item {
    flex: 1;
}

.full-width-image {
    width: 100%;
}

.right-column {
    flex: 0 0 30%;
}

.vertical-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.image-item h3 {
    position: static;
    background: none;
    color: var(--color-primary);
    padding: 0.75rem 0 0 0;
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
    line-height: 1.3;
}

.grid-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
    border-radius: 8px;
}

/* Footer */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding-top: 4rem;
}

.footer-main-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    flex: 0 0 300px;
}

.footer-logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-white);
    background: none;
    padding: 0;
}

.contact-item a {
    color: var(--color-white);
    text-decoration: none;
    transition: color 0.3s ease;
    background: none;
}

.contact-item a:hover {
    color: var(--color-accent);
}

.contact-item i {
    color: var(--color-accent);
    font-size: 1.2rem;
    background: none;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    justify-content: space-between;
}

.footer-section {
    min-width: 200px;
}

.footer-section h4 {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding: 1.5rem 0;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: #888888;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-accent);
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Showcase Modern Section */
.showcase-modern {
    padding: 4rem 0;
    background-color: var(--color-background);
}

.container-images {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-col {
    display: flex;
    flex-direction: column;
}

.image-wrapper {
    height: 100%;
}

.service-card {
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    padding: 1.5rem;
    margin: 0;
    background-color: var(--color-background);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-intro {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
}

.service-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-text-secondary);
}

.service-features li::before {
    content: "•";
    color: var(--color-accent);
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 0.4rem;
}

@media (max-width: 1200px) {
    .container-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .container-images {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-card img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .container-images {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .service-card h3 {
        font-size: 1.25rem;
        padding: 1rem;
    }
    
    .service-content {
        padding: 1rem;
    }
    
    .service-intro {
        font-size: 1rem;
    }
    
    .service-card img {
        height: 180px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    nav {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-primary);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        background-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        margin-top: 0.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2rem 0;
        max-width: 100%;
    }

    .hero-content {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2.25rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        flex: 0 1 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .features {
        flex-direction: column;
    }
    
    .left-column,
    .right-column {
        flex: 0 0 100%;
    }
    
    .dual-images .grid-img,
    .full-width-image .grid-img,
    .vertical-images .grid-img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .tracking-search {
        order: 2;
        width: 100%;
        margin: 1rem 0;
    }

    .search-form {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tracking-input {
        flex: 1;
        min-width: 0;
    }

    .auth-buttons {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .dual-images {
        flex-direction: column;
    }
    
    .grid-img {
        height: 250px !important;
    }

    .footer-main-content {
        flex-direction: column;
    }

    .footer-brand {
        flex: 0 0 100%;
    }

    .footer-links {
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .service-slide {
        padding: 0.5rem;
    }

    .slick-dots {
        display: none !important;
    }
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.btn-yellow.pulse {
    animation: pulse 1s ease;
}