/* 
   GalaTrans Design System 
   Mode: Light (Premium - Red)
*/

:root {
    /* Brand Colors */
    --color-primary: #003366;
    /* Deep Sea Blue */
    --color-primary-dark: #002244;
    --color-secondary: #D32F2F;
    /* Logistics Red */
    --color-secondary-hover: #B71C1C;

    /* Neutrals */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F9FA;
    --color-text: #2C3E50;
    --color-text-light: #6c757d;
    --color-text-white: #FFFFFF;
    --color-border: #DEE2E6;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Effects */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
    --glass: rgba(255, 255, 255, 0.95);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 50px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-primary);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-md {
    gap: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    /* Pill shape */
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-text-white);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-secondary-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
}

.btn-outline {
    border: 2px solid var(--color-text-white);
    color: var(--color-text-white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: var(--color-text-white);
    color: var(--color-primary);
    transform: translateY(-4px);
}

/* Header */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: transparent;
    transition: var(--transition);
}

.main-header.scrolled {
    background: var(--glass);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-text-white);
}

.main-header.scrolled .logo,
.main-header.scrolled .desktop-nav a {
    color: var(--color-primary);
}


/* Language Switcher */
.lang-switch {
    margin-left: 1.5rem;
    position: relative;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-switch a {
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-switch a:hover,
.lang-switch a.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-secondary);
}

.main-header.scrolled .lang-switch a.active {
    background: rgba(0, 51, 102, 0.1);
}

.desktop-nav a {
    font-weight: 500;
    color: var(--color-text-white);
    font-size: 0.95rem;
    opacity: 0.9;
}

.desktop-nav a:hover {
    color: var(--color-secondary);
    opacity: 1;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
    overflow: hidden;
}

.hero-bg,
.hero-bg img,
.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    object-fit: cover;
    animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-bg .overlay {
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.85) 0%, rgba(0, 51, 102, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Services */
.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--color-bg);
    padding: 3rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-secondary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    height: 80px;
    width: auto;
    margin: 0 auto 1.5rem;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Stats */
.stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.stat-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    color: var(--color-primary);
}

/* Contact */
.contact-wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.contact-form h3 {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}

/* Footer */
footer a {
    opacity: 0.8;
}

footer a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    /* Hide standard nav, would add mobile menu here */
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Marquee */
.marquee-container {
    background-color: var(--color-primary-dark);
    color: white;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

/* Page Headers on Detail Pages */
.page-header h1,
.page-header p {
    color: white !important;
}

.page-header h1 {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}