/* =============================================
   GONZOTECH — Modern Professional UI
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* --- Variables --- */
:root {
    --bg:          #0f172a;
    --surface:     #1e293b;
    --surface2:    #273449;
    --border:      #334155;
    --border-soft: #2a3a52;
    --accent:      #3b82f6;
    --accent-soft: rgba(59,130,246,0.12);
    --accent-glow: rgba(59,130,246,0.25);
    --green:       #22c55e;
    --amber:       #f59e0b;
    --purple:      #a855f7;
    --text:        #cbd5e1;
    --text-dim:    #64748b;
    --text-bright: #f1f5f9;
    --radius:      10px;
    --radius-sm:   6px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    background-image: radial-gradient(circle at 1px 1px, rgba(148,163,184,0.07) 1px, transparent 0);
    background-size: 28px 28px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Animated top gradient bar --- */
.page-top-bar {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--purple) 70%, transparent 100%);
    background-size: 200% 100%;
    animation: topBarShift 5s ease-in-out infinite;
}

@keyframes topBarShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Header --- */
header {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    height: 60px;
    gap: 8px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 24px;
    border-right: 1px solid var(--border);
    flex-shrink: 0;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(59,130,246,0.35);
}

.logo-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.3px;
}

/* --- Nav wrap with fade hint --- */
.nav-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

/* Fade on right edge to hint at scroll */
.nav-wrap::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 60px;
    width: 32px;
    background: linear-gradient(to right, transparent, rgba(15,23,42,0.9));
    pointer-events: none;
    z-index: 2;
}

nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

nav::-webkit-scrollbar { display: none; }

.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 0 16px;
    height: 60px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-btn:hover { color: var(--text-bright); }

.tab-btn.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* --- Page wrap --- */
.page-wrap { min-height: calc(100vh - 62px); }

/* --- Content sections --- */
.content-section { display: none; animation: fadeIn 0.3s ease; }
.content-section.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Hero --- */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px 48px;
    position: relative;
}

/* Glow blob in hero background */
.hero-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 580px;
    height: 480px;
    background: radial-gradient(ellipse at 70% 30%, rgba(59,130,246,0.13) 0%, rgba(168,85,247,0.06) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero > *:not(.hero-glow) { position: relative; z-index: 1; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.hero-eyebrow::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100%{ opacity:1; } 50%{ opacity:0.35; } }

.hero-title {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -1.5px;
    line-height: 1.12;
    margin-bottom: 18px;
}

/* Gradient accent word */
.hero-title span {
    background: linear-gradient(135deg, var(--accent) 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 560px;
    line-height: 1.75;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 11px 22px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: filter 0.2s, transform 0.1s, box-shadow 0.2s;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.btn-primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(59,130,246,0.45);
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    padding: 11px 22px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--text-bright);
    background: var(--accent-soft);
}

/* --- Stats --- */
.stats-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: linear-gradient(145deg, var(--surface), var(--surface2));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

/* Subtle glow at bottom of stats */
.stats-grid::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: radial-gradient(ellipse at 50% 100%, rgba(59,130,246,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
    padding: 26px 16px;
    border-right: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.stat-item:last-child { border-right: none; }

.stat-val {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -1px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 7px;
    font-weight: 500;
}

/* --- Section --- */
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 56px;
}

.section-header { margin-bottom: 24px; }

.section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.4px;
}

.section-desc {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 5px;
    line-height: 1.65;
}

/* --- Service cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59,130,246,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover {
    border-color: rgba(59,130,246,0.6);
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(59,130,246,0.15), 0 12px 32px rgba(0,0,0,0.3), 0 0 40px rgba(59,130,246,0.07);
}

.service-card:hover::before { opacity: 1; }

.service-icon { font-size: 24px; margin-bottom: 12px; display: block; }

.service-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 6px;
}

.service-desc {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 14px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    transition: gap 0.15s;
}

.service-link:hover { gap: 8px; }

/* --- Info card --- */
.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 14px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    border-color: var(--border-soft);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.info-card-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }

.info-card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 4px;
}

.info-card-body {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.7;
}

/* --- Domain list --- */
.domain-list { display: flex; flex-direction: column; gap: 7px; }

.domain-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    text-decoration: none;
    cursor: pointer;
}

.domain-row:hover {
    border-color: rgba(59,130,246,0.5);
    background: var(--surface2);
    transform: translateX(2px);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 7px var(--green);
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

.domain-url {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-bright);
    font-weight: 500;
    flex: 1;
}

.domain-desc { font-size: 13px; color: var(--text-dim); }

.domain-arrow {
    font-size: 14px;
    color: var(--text-dim);
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.domain-row:hover .domain-arrow {
    color: var(--accent);
    transform: translateX(2px);
}

/* --- Project / automation cards (JS injected) --- */
.proj-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.proj-card:hover {
    border-color: rgba(59,130,246,0.4);
    transform: translateX(2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.proj-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.proj-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-bright);
}

.proj-body {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.7;
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-green  { background: rgba(34,197,94,0.1);  color: var(--green);  border: 1px solid rgba(34,197,94,0.25); }
.badge-amber  { background: rgba(245,158,11,0.1); color: var(--amber);  border: 1px solid rgba(245,158,11,0.25); }
.badge-blue   { background: var(--accent-soft);   color: var(--accent); border: 1px solid var(--accent-glow); }
.badge-purple { background: rgba(168,85,247,0.1); color: var(--purple); border: 1px solid rgba(168,85,247,0.25); }

/* --- Page header (sub-pages) --- */
.page-header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.page-header-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: -0.4px;
}

.page-header-sub {
    font-size: 14px;
    color: var(--text-dim);
    margin-top: 4px;
}

/* --- Grid --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* --- Spec table --- */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 11px 8px; font-size: 13.5px; }
.spec-table td:first-child { color: var(--text-dim); font-weight: 500; width: 40%; }
.spec-table td:last-child { color: var(--text-bright); font-weight: 500; }

/* --- Contact form --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group { margin-bottom: 16px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 11px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

input::placeholder, textarea::placeholder { color: var(--text-dim); }
textarea { resize: vertical; min-height: 120px; }

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s, transform 0.1s, box-shadow 0.2s;
    margin-top: 4px;
    box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.btn-submit:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 20px rgba(59,130,246,0.45);
}
.btn-submit:active { transform: scale(0.98); }

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border);
    background: rgba(15,23,42,0.8);
    backdrop-filter: blur(12px);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-dim);
}

.footer-brand {
    font-weight: 700;
    color: var(--text);
}

.footer-sep { color: var(--border); }

.footer-right {
    margin-left: auto;
    font-size: 12px;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-inner { padding: 0 16px; gap: 12px; }
    .logo-name { font-size: 15px; }
    .logo-block { padding-right: 16px; }
    .tab-btn { padding: 0 14px; font-size: 13.5px; }

    .hero { padding: 40px 16px 32px; }
    .hero-glow { width: 300px; height: 300px; top: -40px; right: -40px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item { border-right: none !important; border-bottom: 1px solid var(--border); }
    .stat-item:nth-last-child(-n+2) { border-bottom: none; }
    .stat-val { font-size: 26px; }

    .services-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 0 16px 40px; }
    .page-header { padding: 28px 16px 24px; }
    .stats-section { padding: 0 16px 32px; }

    .form-row { grid-template-columns: 1fr; }
    .footer-right { display: none; }
}

@media (max-width: 480px) {
    .hero-title { letter-spacing: -0.8px; }
    .domain-desc { display: none; }
}
