/* --- 1. RESET & VARIABLES --- */
:root {
    --basalt: #2D3436;
    --basalt-dark: #1e2324;
    --teal: #00A8A8;
    --copper: #D35400;
    --quartz: #DFE6E9;
    --mist: #78909C;
    --white: #FFFFFF;
    --container-width: 1100px;
    --font-main: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--basalt);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. NAVIGATION --- */
.navbar {
    background-color: var(--basalt);
    color: var(--white);
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--teal);
}

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

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}
/*
.logo-icon {
    width: 20px;
    height: 20px;
    background: var(--teal);
    display: inline-block;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
*/

.logo-icon {
    width: 26px;
    height: 26px;
    /* Replace 'logo.png' with your actual image path */
    /*background-image: url('logo.png');
        background-size: cover;
        */
background: url('logo.png') no-repeat center / 19px, 
                var(--quartz);

    background-position: center;
    display: inline-block;
    /* The clip-path acts as a mask over the image */
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--quartz);
    transition: color 0.3s;
}

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

/* --- 3. HERO SECTION (UPDATED FOR IMAGE & LAYOUT FIX) --- */
.hero {
    height: 85vh;
    min-height: 600px; /* Prevents squashing on short screens */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Loading the User's Image */
    background-image: url('hero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* Overlay to make text readable */
    background-color: rgba(45, 52, 54, 0.75); 
    background-blend-mode: multiply;
    color: var(--white);
    overflow: hidden;
}

/* Texture overlay on top of image */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0px, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Forces spacing so buttons don't overlap text */
    max-width: 800px;
    padding: 0 20px;
}

.hero-line {
    width: 60px;
    height: 6px;
    background-color: var(--teal);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--quartz);
    max-width: 600px;
    font-weight: 300;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* BUTTONS */
.btn-primary {
    background-color: var(--teal);
    color: var(--white);
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 2px;
    transition: background 0.3s;
}
.btn-primary:hover { background-color: #008c8c; }

.btn-secondary {
    border: 1px solid var(--quartz);
    color: var(--quartz);
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.3s;
}
.btn-secondary:hover {
    border-color: var(--copper);
    color: var(--copper);
}

/* --- 4. METRICS & MARKETS SECTIONS --- */
.metrics-bar {
    background-color: var(--white);
    padding: 40px 0;
    border-bottom: 1px solid var(--quartz);
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}
.metric .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--basalt);
}
.metric .label {
    color: var(--mist);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.markets {
    padding: 80px 0;
    background-color: #f8f9fa;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--basalt);
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--copper);
    margin: 15px auto 0;
}
.market-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.market-card {
    background: var(--white);
    padding: 50px;
    border: 1px solid var(--quartz);
    transition: transform 0.3s, box-shadow 0.3s;
}
.market-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-color: var(--teal);
}
.card-icon svg { width: 48px; height: 48px; margin-bottom: 20px; }
.germany-icon svg { stroke: var(--mist); }
.taiwan-icon svg { stroke: var(--teal); }

.market-card h3 { font-size: 1.5rem; margin-bottom: 5px; }
.market-card .subtitle {
    color: var(--copper);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.feature-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--basalt);
}
.feature-list li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 800;
}

/* --- 5. FOOTER & MOBILE --- */
footer {
    background-color: var(--basalt);
    color: var(--mist);
    padding: 60px 0;
    font-size: 0.9rem;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-col h4 {
    color: var(--white);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .market-grid { grid-template-columns: 1fr; }
    .metrics-grid { grid-template-columns: 1fr; gap: 30px; }
    .nav-links { display: none; }
    .hero-content { align-items: flex-start; text-align: left; }
}
