/* --- Design Tokens --- */
:root {
    /* Brand Colors - Concordia Trade Official */
    --color-primary: #62b5e5;
    --color-primary-hover: #4fa3d1;
    --color-accent: #d4a855;

    --color-bg: #11111f;
    --color-bg-card: rgba(255, 255, 255, 0.03);
    --color-text-main: #FFFFFF;
    --color-text-muted: #A0AEC0;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Montserrat', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-section: 4rem;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Ambient Background Lights for Glassmorphism --- */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.15;
}

body::before {
    width: 60vh;
    height: 60vh;
    background: var(--color-primary);
    top: -10%;
    right: -10%;
}

body::after {
    width: 50vh;
    height: 50vh;
    background: var(--color-accent);
    bottom: -10%;
    left: -10%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-bg);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
    padding: 1.5rem 0;
    display: flex;
    justify-content: center;
    position: absolute;
    /* Overlay on hero */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: transparent;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-main);
    font-weight: 500;
}

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

/* --- Language Switcher --- */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0;
    transition: color 0.3s;
}

.lang-btn:hover {
    color: var(--color-primary);
}

.lang-btn.active {
    color: var(--color-text-main);
}

.lang-sep {
    color: var(--color-text-muted);
    user-select: none;
    opacity: 0.5;
}

/* --- Hero --- */
.hero {
    min-height: 65vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg);
    background: radial-gradient(circle at center, #1a1a2e 0%, var(--color-bg) 100%);
    justify-content: center;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17, 17, 31, 0.2) 0%, rgba(17, 17, 31, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    z-index: 2; /* Ensure it stays above overlay */
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-top: 2rem;
}

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
}

.hero-logo-img {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 25px rgba(98, 181, 229, 0.4));
}

.hero-text {
    max-width: 800px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #fff, var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .subtitle {
    font-size: 1.3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero .description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin: 0 auto 2rem auto;
    /* Center the block itself */
    max-width: 600px;
    /* Increased slightly for better readability */
}

/* Decorative Hero Element Removed */

/* --- Section Transition --- */
.search-section {
    position: relative;
    padding-top: 2rem;
}

/* --- Section Titles --- */
.section-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 3rem;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.service-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    letter-spacing: 0.5px;
    text-align: center;
    color: var(--color-accent);
    font-weight: 700;
}

.service-card p {
    color: var(--color-text-muted);
    text-align: center;
}

/* --- About Us --- */
.about-section {
    padding: 3rem 0;
}

.about-card {
    padding: 2rem;
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-card p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* --- Partners Section --- */
.partners-section {
    padding: 3rem 0;
}

.partners-title {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 2.5rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.partner-logo {
    width: auto;
    height: 38px;
    /* CSS filter to turn black into brand blue (#62b5e5) */
    filter: invert(59%) sepia(100%) saturate(336%) hue-rotate(171deg) brightness(98%) contrast(96%);
    opacity: 0.5;
    transition: var(--transition-hover);
}

.partner-logo:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.partner-logo.amazon { height: 32px; }
.partner-logo.dhl { height: 40px; }
.partner-logo.ups { height: 42px; }
.partner-logo.dpd { height: 42px; }
.partner-logo.gls { height: 38px; }

/* --- Contact Section --- */
.contact-section {
    padding: 3rem 0;
}

.contact-info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-box {
    padding: 2.5rem 2rem;
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05); /* unify border */
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.contact-box:hover {
    border-color: var(--color-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-box h4 {
    color: var(--color-accent);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    font-family: var(--font-display);
}

.contact-box p, .contact-box a {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.5;
}

.contact-box a:hover {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Footer --- */
footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #0d0d17;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-text-main);
    transition: background 0.3s, transform 0.2s;
}

.footer-social a svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.footer-social a:hover {
    background: var(--color-primary);
    color: var(--color-bg);
    transform: translateY(-2px);
}

.footer-info {
    text-align: center;
    width: 100%;
}

.footer-line {
    display: block;
    margin: 0.3rem 0;
    font-size: 0.78rem;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.5px;
}

.company-details {
    color: rgba(255, 255, 255, 0.25);
}

.copyright strong {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}



@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-brand, .footer-social {
        justify-content: center;
    }

    .copyright {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-divider {
        display: none;
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* --- Scroll Reveal Animations --- */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Contact Form --- */
.form-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.glass-form {
    width: 100%;
    max-width: 900px;
    background: var(--color-bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem 2.5rem 1.5rem;   /* Reduced bottom padding specifically */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-cta {
    color: var(--color-accent);
    text-align: center;
    font-size: 1.1rem;      /* Matched to .contact-box h4 */
    font-family: var(--font-display);
    font-weight: 500;
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;           /* Reduced from 1.5rem */
}

.form-group {
    margin-bottom: 1.25rem; /* Reduced from 1.5rem */
}

.glass-input {
    width: 100%;
    padding: 0.85rem 1.25rem; /* Reduced vertical padding */
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;       /* Slightly reduced */
    transition: all 0.3s ease;
}

.glass-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-accent);
    box-shadow: 0 0 15px rgba(212, 168, 85, 0.2);
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-actions {
    display: flex;
    justify-content: center; /* Center the button */
}

.btn-submit {
    background: rgba(98, 181, 229, 0.15);
    color: var(--color-primary);
    border: 1px solid rgba(98, 181, 229, 0.4);
    border-radius: 8px;
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-family: var(--font-main);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s, border-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-submit:hover {
    background: rgba(98, 181, 229, 0.3);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(98, 181, 229, 0.3);
}

.form-msg {
    margin-top: 1rem;
    font-size: 0.95rem;
    text-align: center;
}
.form-msg.success { color: #4ade80; }
.form-msg.error { color: #f87171; }

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .glass-form { padding: 1.5rem; }
}

/* --- Cookie Floating Banner --- */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 420px;
    background: rgba(17, 17, 31, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.25rem;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s;
    opacity: 1;
}

.cookie-banner.hidden {
    transform: translate(-50%, 150%);
    opacity: 0;
    pointer-events: none;
}

.cookie-content p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin: 0;
}

.privacy-link {
    color: var(--color-primary);
    text-decoration: underline;
    margin-left: 0.5rem;
}

.privacy-link:hover {
    color: var(--color-primary-hover);
}

.btn-cookie {
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-cookie:hover {
    background: var(--color-primary-hover);
}

@media (max-width: 600px) {
    .btn-cookie { width: 100%; }
}