:root {
    --bg-color: #f6f8fb;
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #475569;
    --primary: #047857;
    --secondary: #0369a1;
    --border: rgba(15, 23, 42, 0.08);
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body { 
    font-family: var(--font-sans); 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
}

h1, h2, h3 { color: var(--text-main); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; text-wrap: balance; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center; }

p { 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    margin-bottom: 0.8rem; 
    max-width: 70ch; 
    margin-left: auto; 
    margin-right: auto; 
}

a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* --- HEADER (Glassmorphism) --- */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
}

/* Scroll Progress Bar */
.progress-container {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
}
.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.75rem 2rem;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.brand-name { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; letter-spacing: 0.28em; line-height: 1.1; }
.brand-desc { font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em; line-height: 1.2; color: #334155; white-space: nowrap; }
.brand-greek { font-family: var(--font-sans); font-size: 0.6rem; font-style: italic; color: #94A3B8; line-height: 1.2; white-space: nowrap; }

.nav nav { display: flex; gap: 1.1rem; align-items: center; white-space: nowrap; }
.nav nav a { font-weight: 500; font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.nav nav a:hover { color: var(--primary); }
.nav nav .btn-primary { padding: 0.5rem 1rem; font-size: 0.85rem; }

/* --- BUTTONS (Interactive Gradient) --- */
.btn-primary, .btn-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    background-size: 200% 200%;
    color: #ffffff;
    border: none;
}
.btn-primary:hover {
    background-position: 100% 50%;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(3, 105, 161, 0.2);
}
.btn-outline { border: 1px solid var(--border); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* --- HERO SECTION (Compact) --- */
.hero {
    padding: 2rem 0 1rem; 
    background-image: url('assets/bg-grid.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
}
.hero-kicker {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.8rem;
    background: rgba(4, 120, 87, 0.08);
    padding: 4px 12px;
    border-radius: 4px;
}
.hero-sub { font-size: 1.25rem; margin-bottom: 1rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1rem; }

.credibility-strip {
    margin-top: 0.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}
.credibility-strip strong { color: var(--text-main); }

/* --- SECTIONS (Ultra Compact) --- */
.section { 
    padding-top: 1.2rem; 
    padding-bottom: 1.5rem; 
}
.bg-light { background-color: var(--surface); }
.section-desc {
    text-align: center;
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Animated Heading Lines */
.section-title { 
    position: relative; 
    display: inline-block; 
    padding-bottom: 5px; 
    margin-bottom: 0.5rem; 
}
.section-title::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--primary);
    transition: width 0.35s ease, background 0.35s ease;
}
.section-title:hover::after { width: 80px; background: var(--secondary); }

/* --- SERVICES GRID --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.card { 
    background: var(--surface); 
    border: 1px solid var(--border); 
    padding: 1rem; 
    border-radius: 8px; 
    transition: border-color 0.2s, box-shadow 0.2s; 
}
.card:hover { border-color: rgba(4, 120, 87, 0.45); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; color: var(--secondary); }
.card p { font-size: 0.95rem; line-height: 1.4; margin-bottom: 0; }
.highlight-card { background: linear-gradient(135deg, rgba(4, 120, 87, 0.05), rgba(3, 105, 161, 0.05)); border-color: var(--primary); }

/* --- INDUSTRIES --- */
.industries-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.industry-item {
    background: var(--surface);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    border: 1px solid var(--border);
}

/* --- PORTFOLIO TABS --- */
.tab-bar { display: flex; justify-content: center; gap: 2rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.tab-bar label { padding: 0.6rem 0; cursor: pointer; font-size: 1rem; font-weight: 500; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; }
.tab-bar label:hover { color: var(--text-main); }
.tabs > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.panel { display: none; animation: fadeIn 0.4s ease forwards; }
#tab-cap:checked ~ .panel-cap, #tab-proj:checked ~ .panel-proj { display: block; }
#tab-cap:checked ~ .tab-bar label[for="tab-cap"], #tab-proj:checked ~ .tab-bar label[for="tab-proj"] { color: var(--primary); border-bottom-color: var(--primary); }

/* Item Grid inside Tabs */
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.8rem; align-items: start; }
.item { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.8rem 1rem; transition: border-color 0.2s; cursor: pointer; }
.item:hover, .item[open] { border-color: rgba(4, 120, 87, 0.45); }
.item summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.item summary::-webkit-details-marker { display: none; }
.item summary::after { content: "+"; font-family: var(--font-mono); color: var(--primary); font-weight: 700; }
.item[open] summary::after { content: "−"; }
.item-title { font-weight: 600; font-size: 0.95rem; }
.item-meta { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-muted); text-transform: uppercase; }
.item p { margin-top: 0.5rem; font-size: 0.9rem; margin-bottom: 0; }
.link { font-size: 0.85rem; font-weight: 600; color: var(--primary); text-decoration: underline; }

/* --- ABOUT --- */
.about-content { max-width: 800px; margin: 0 auto; text-align: center; }
.about-content p { font-size: 1.1rem; margin-bottom: 0.6rem; }
.tagline { font-family: var(--font-mono); color: var(--primary); margin-top: 0.8rem; font-size: 1.2rem; }

/* --- CONTACT --- */
.contact-section { background-color: var(--bg-color) !important; }
.kanon-form { max-width: 600px; margin: 1rem auto 0; background: #ffffff; padding: 1.2rem; border-radius: 12px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.kanon-form .field { margin-bottom: 0.6rem; }
.kanon-form label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.9rem; }
.kanon-form input, .kanon-form select, .kanon-form textarea { width: 100%; padding: 0.6rem 0.8rem; font-size: 15px; border: 1px solid #cbd5e1; border-radius: 6px; }
.kanon-form textarea { min-height: 90px; }
.kanon-form button { width: 100%; min-height: 44px; background: #047857; color: #fff; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.kanon-form button:hover { background: #0369a1; }
.kanon-status { margin-top: 1rem; padding: 1rem; border-radius: 6px; display: none; }
.kanon-status.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #047857; }
.kanon-status.err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #b91c1c; }

/* --- FOOTER --- */
footer { background: var(--surface); padding: 1rem 0; text-align: center; border-top: 1px solid var(--border); font-size: 0.9rem; }

/* --- ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease-out, transform 0.5s ease-out; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .nav { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .hero { padding: 1.5rem 0 1rem; }
    .hero-cta { flex-direction: column; }
    .tab-bar { flex-direction: column; gap: 0; align-items: center; }
    .tab-bar label { width: 100%; text-align: center; border-bottom: none; border-left: 2px solid transparent; }
    #tab-cap:checked ~ .tab-bar label[for="tab-cap"], #tab-proj:checked ~ .tab-bar label[for="tab-proj"] { border-bottom-color: transparent; border-left-color: var(--primary); }
}
