:root {
    /* Brand Colors from Logo */
    --brand-blue: #2e63cd;
    --brand-blue-dark: #1a2193;
    --brand-cyan: #0582b8;
    --brand-teal: #0ff0d0;
    
    /* Light Theme (Default) */
    --bg-primary: #f6f8fc;
    --bg-secondary: #ffffff;
    --bg-elevated: #ffffff;
    --bg-subtle: #eef3fb;
    --bg-header: rgba(246, 248, 252, 0.85);
    --bg-terminal: #0f172a;
    
    --text-primary: #131e29;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --logo-text: #1a2926;
    --logo-subtext: #2e63cd;
    
    --border-color: rgba(46, 99, 205, 0.13);
    --border-strong: rgba(46, 99, 205, 0.28);
    
    --accent-primary: #2e63cd;
    --accent-secondary: #0582b8;
    --accent-badge-bg: rgba(46, 99, 205, 0.08);
    --accent-badge-text: #1e4bb8;
    --tech-tag-bg: #f1f5f9;
    --tech-tag-text: #334155;
    --tech-tag-border: #e2e8f0;
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 12px 32px -8px rgba(19, 30, 41, 0.08);
    --shadow-lg: 0 20px 45px -12px rgba(46, 99, 205, 0.15);
    
    --grid-line: rgba(46, 99, 205, 0.045);
    --glow-1: rgba(46, 99, 205, 0.12);
    --glow-2: rgba(15, 240, 208, 0.12);
}

[data-theme="dark"] {
    --bg-primary: #0b1120;
    --bg-secondary: #111a2e;
    --bg-elevated: #16213a;
    --bg-subtle: #152238;
    --bg-header: rgba(11, 17, 32, 0.85);
    --bg-terminal: #070b14;
    
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --logo-text: #f8fafc;
    --logo-subtext: #0ff0d0;
    
    --border-color: rgba(148, 163, 184, 0.14);
    --border-strong: rgba(15, 240, 208, 0.35);
    
    --accent-primary: #4f86f7;
    --accent-secondary: #0ff0d0;
    --accent-badge-bg: rgba(15, 240, 208, 0.1);
    --accent-badge-text: #0ff0d0;
    --tech-tag-bg: rgba(30, 41, 59, 0.85);
    --tech-tag-text: #cbd5e1;
    --tech-tag-border: rgba(148, 163, 184, 0.18);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 14px 34px -8px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 22px 50px -12px rgba(5, 130, 184, 0.25);
    
    --grid-line: rgba(255, 255, 255, 0.03);
    --glow-1: rgba(46, 99, 205, 0.22);
    --glow-2: rgba(15, 240, 208, 0.14);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: 'Plus Jakarta Sans', 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow-x: hidden;
    position: relative;
}

/* Subtle tech background pattern */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -2;
}

.ambient-glow {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(circle at 30% 30%, var(--glow-1), transparent 60%),
                radial-gradient(circle at 70% 40%, var(--glow-2), transparent 60%);
    filter: blur(60px);
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* SVG Logo Adaptive Classes */
.cls-9,
.brand-logo-svg .cls-9 {
    fill: var(--logo-text) !important;
    transition: fill 0.25s ease;
}

.cls-10,
.brand-logo-svg .cls-10 {
    fill: var(--logo-subtext) !important;
    transition: fill 0.25s ease;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-header);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 76px;
    gap: 28px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto;
}

.logo-link svg {
    height: 54px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.theme-toggle svg {
    width: 20px;
    height: 20px;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

:root:not([data-theme="dark"]) .icon-sun {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(46, 99, 205, 0.28);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(46, 99, 205, 0.38);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 0.88rem;
}

/* Hero Section */
.hero {
    padding: 72px 0 56px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 44px;
    align-items: center;
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-badge-bg);
    color: var(--accent-badge-text);
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-cyan), var(--brand-teal));
    box-shadow: 0 0 8px var(--brand-teal);
}

.hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.15rem);
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(125deg, var(--brand-blue) 0%, var(--brand-cyan) 55%, #0bc5ad 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .text-gradient {
    background: linear-gradient(125deg, #60a5fa 0%, #38bdf8 50%, var(--brand-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 1.12rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.hero-pill:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Hero Visual Card (Quick Business Card & System Status) */
.hero-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan), var(--brand-teal));
}

.hero-card-logo {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
    display: block;
}

.hero-card-divider {
    height: 1px;
    background: var(--border-color);
    margin: 18px 0;
}

.quick-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--bg-subtle);
    font-size: 0.92rem;
}

.quick-contact-label {
    color: var(--text-muted);
    font-weight: 500;
}

.quick-contact-value {
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

a.quick-contact-value:hover {
    color: var(--accent-primary);
}

/* Section Headers */
.section {
    padding: 64px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Services Grid (5 Services) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.service-card {
    grid-column: span 2;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* Second row: Webhosting spans 4 cols, 3D print spans 2 cols (or 3 + 3) */
.service-card.service-featured {
    grid-column: span 4;
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-subtle) 100%);
    border-color: var(--border-strong);
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(46, 99, 205, 0.12), rgba(15, 240, 208, 0.14));
    color: var(--accent-primary);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .service-icon {
    color: var(--brand-teal);
}

.service-icon svg {
    width: 26px;
    height: 26px;
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-custom {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
    color: #fff;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.96rem;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    margin-bottom: 0;
    display: grid;
    gap: 8px;
}

.service-featured .service-features {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 18px;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.service-features li svg {
    width: 17px;
    height: 17px;
    color: var(--brand-cyan);
    flex-shrink: 0;
    margin-top: 3px;
}

[data-theme="dark"] .service-features li svg {
    color: var(--brand-teal);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.tech-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    font-weight: 500;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--tech-tag-bg);
    color: var(--tech-tag-text);
    border: 1px solid var(--tech-tag-border);
}

/* Hosting Spec Strip / Terminal Showcase */
.hosting-showcase {
    margin-top: 28px;
    background: var(--bg-terminal);
    color: #e2e8f0;
    border-radius: 18px;
    padding: 28px 32px;
    border: 1px solid rgba(15, 240, 208, 0.25);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.hosting-showcase h3 {
    color: #ffffff;
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.hosting-showcase p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.hosting-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.spec-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px;
}

.spec-box-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #38bdf8;
    font-weight: 700;
    margin-bottom: 4px;
}

.spec-box-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.86rem;
    color: #f8fafc;
    font-weight: 600;
}

.terminal-window {
    background: #050811;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
}

.terminal-header {
    background: #0f172a;
    padding: 9px 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.term-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.term-dot.red { background: #ef4444; }
.term-dot.yellow { background: #f59e0b; }
.term-dot.green { background: #10b981; }

.term-title {
    margin-left: 8px;
    color: #64748b;
    font-size: 0.76rem;
}

.terminal-body {
    padding: 16px;
    line-height: 1.65;
    color: #cbd5e1;
}

.term-cmd { color: #0ff0d0; }
.term-comment { color: #64748b; }
.term-ok { color: #34d399; }

/* Contact Section */
.contact-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    padding: 42px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.contact-info-block h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.contact-info-block p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.contact-person {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-subtle);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.avatar-circle {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.person-details strong {
    display: block;
    font-size: 1.15rem;
}

.person-details span {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-method-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease;
}

.contact-method-box:hover {
    border-color: var(--border-strong);
}

.contact-method-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-method-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.contact-method-icon svg {
    width: 20px;
    height: 20px;
}

.contact-method-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.contact-method-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.contact-method-link:hover {
    color: var(--accent-primary);
}

.copy-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Footer */
.site-footer {
    padding: 32px 0 44px;
    border-top: 1px solid var(--border-color);
    margin-top: 32px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-card,
    .service-card.service-featured {
        grid-column: span 1;
    }
    .service-card.service-featured {
        grid-column: span 2;
    }
    .hosting-showcase {
        grid-template-columns: 1fr;
    }
    .contact-card {
        grid-template-columns: 1fr;
        padding: 28px;
    }
}

@media (max-width: 720px) {
    .container {
        padding: 0 16px;
    }
    .header-inner {
        height: 64px;
        gap: 10px;
    }
    .site-header nav {
        display: none;
    }
    .logo-link {
        min-width: 0;
        flex: 1 1 auto;
    }
    .logo-link svg {
        height: auto;
        width: 100%;
        max-width: 165px;
        max-height: 38px;
    }
    .header-actions {
        gap: 8px;
        flex-shrink: 0;
    }
    .theme-toggle {
        width: 38px;
        height: 38px;
    }
    .header-actions .btn-sm {
        padding: 8px 12px;
        font-size: 0.82rem;
        white-space: nowrap;
    }
    .hero {
        padding: 32px 0 28px;
    }
    .hero-card {
        padding: 20px;
    }
    .quick-contact-item {
        flex-wrap: wrap;
        gap: 4px 10px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .service-card,
    .service-card.service-featured {
        grid-column: span 1;
        padding: 22px;
    }
    .service-featured .service-features {
        grid-template-columns: 1fr;
    }
    .hosting-specs-grid {
        grid-template-columns: 1fr 1fr;
    }
    .contact-card {
        padding: 22px 18px;
    }
    .contact-method-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .contact-method-link {
        word-break: break-all;
    }
}
