/* ===================================
   VS Code Dark Theme
   Rysin Inc. — Computer Technology
   =================================== */

/* ===================================
   CSS Variables — VS Code Dark+
   =================================== */
:root {
    /* VS Code UI Colors */
    --vsc-editor:      #1e1e1e;
    --vsc-sidebar:     #252526;
    --vsc-tab-bar:     #2d2d2d;
    --vsc-tab-active:  #1e1e1e;
    --vsc-tab-inactive:#2d2d2d;
    --vsc-titlebar:    #3c3c3c;
    --vsc-border:      #3d3d3d;
    --vsc-border-hi:   #555555;
    --vsc-hover:       #2a2d2e;
    --vsc-selection:   #264f78;
    --vsc-accent:      #007acc;
    --vsc-accent-dk:   #005f9e;

    /* Text */
    --text-primary:    #d4d4d4;
    --text-secondary:  #9d9d9d;
    --text-muted:      #6c6c6c;
    --text-heading:    #e8e8e8;

    /* Syntax Highlighting */
    --syn-comment:  #6a9955;
    --syn-keyword:  #569cd6;
    --syn-string:   #ce9178;
    --syn-fn:       #dcdcaa;
    --syn-type:     #4ec9b0;
    --syn-number:   #b5cea8;
    --syn-variable: #9cdcfe;
    --syn-op:       #d4d4d4;

    /* Typography */
    --font-ui:   'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'Fira Code', 'Cascadia Code', Consolas, 'Courier New', monospace;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.6);

    /* Border Radius */
    --radius-sm: 3px;
    --radius-md: 6px;

    /* Transitions */
    --t-fast: 0.15s ease;
    --t-base: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-ui);
    color: var(--text-primary);
    background: var(--vsc-editor);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-heading);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); font-family: var(--font-code); }
h3 { font-size: 1rem; font-family: var(--font-code); font-weight: 400; }
h4 { font-size: 0.9rem; font-family: var(--font-code); font-weight: 400; }

p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

a {
    color: var(--vsc-accent);
    text-decoration: none;
    transition: var(--t-fast);
}

a:hover { color: #4fc3f7; }

/* Syntax highlight spans */
.syn-keyword  { color: var(--syn-keyword);  font-family: var(--font-code); }
.syn-type     { color: var(--syn-type);     font-family: var(--font-code); }
.syn-fn       { color: var(--syn-fn);       font-family: var(--font-code); }
.syn-variable { color: var(--syn-variable); font-family: var(--font-code); }
.syn-string   { color: var(--syn-string);   font-family: var(--font-code); }
.syn-comment  { color: var(--syn-comment);  font-family: var(--font-code); }
.syn-number   { color: var(--syn-number);   font-family: var(--font-code); }
.syn-op       { color: var(--syn-op);       font-family: var(--font-code); }

/* File dot indicators */
.file-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.file-dot.ts  { background: #3178c6; }
.file-dot.js  { background: #f7df1e; }
.file-dot.img { background: #ce9178; }

/* ===================================
   Navigation — VS Code Title + Tab Bar
   =================================== */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--vsc-border);
}

/* Title Bar */
.nav-titlebar {
    background: var(--vsc-titlebar);
    padding: 0.35rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--vsc-border);
    min-height: 36px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 0.82rem;
    font-weight: 600;
}

.nav-logo img {
    height: 24px;
    width: 24px;
    object-fit: contain;
}

.nav-logo:hover { color: white; }

.titlebar-subtitle {
    color: var(--text-muted);
    font-size: 0.78rem;
    flex: 1;
}

/* Tab Bar */
.nav-tabbar {
    background: var(--vsc-tab-bar);
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--vsc-border);
    overflow-x: auto;
    scrollbar-width: none;
}

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

.nav-tabs {
    display: flex;
    align-items: stretch;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-right: 1px solid var(--vsc-border);
    border-bottom: 2px solid transparent;
    background: var(--vsc-tab-inactive);
    transition: var(--t-fast);
    white-space: nowrap;
    cursor: pointer;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: #303030;
}

.nav-tab.active {
    background: var(--vsc-tab-active);
    color: var(--text-primary);
    border-bottom-color: var(--vsc-accent);
}

.nav-tab-cta {
    color: #dcdcaa;
}

/* Hamburger Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    cursor: pointer;
    padding: 0.4rem;
    margin-left: auto;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--t-base);
}

/* ===================================
   Hero Section — Code Editor
   =================================== */
.hero {
    min-height: 100vh;
    padding-top: 90px;
    padding-bottom: var(--spacing-lg);
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    background: var(--vsc-editor);
}

/* Editor Window */
.editor-window {
    background: var(--vsc-editor);
    border: 1px solid var(--vsc-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-width: 340px;
    max-width: 540px;
    flex: 1;
}

.editor-tabs-bar {
    background: var(--vsc-tab-bar);
    display: flex;
    border-bottom: 1px solid var(--vsc-border);
}

.editor-tab {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.9rem;
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: var(--text-muted);
    border-right: 1px solid var(--vsc-border);
    background: var(--vsc-tab-inactive);
    cursor: default;
}

.editor-tab.active {
    background: var(--vsc-tab-active);
    color: var(--text-secondary);
    border-top: 1px solid var(--vsc-accent);
}

.tab-x {
    margin-left: 0.4rem;
    opacity: 0.5;
    font-size: 0.85rem;
}

.editor-body {
    display: flex;
}

.gutter {
    padding: 1rem 0.6rem 1rem 1rem;
    text-align: right;
    user-select: none;
    border-right: 1px solid var(--vsc-border);
    min-width: 44px;
    background: var(--vsc-editor);
}

.gutter span {
    display: block;
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.code-area {
    flex: 1;
    overflow-x: auto;
    padding: 1rem 1.25rem;
}

.code-block {
    font-family: var(--font-code);
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre;
    margin: 0;
}

/* Syntax colors inside code block */
.code-block .syn-comment  { color: var(--syn-comment); }
.code-block .syn-keyword  { color: var(--syn-keyword); }
.code-block .syn-variable { color: var(--syn-variable); }
.code-block .syn-type     { color: var(--syn-type); }
.code-block .syn-string   { color: var(--syn-string); }
.code-block .syn-number   { color: var(--syn-number); }
.code-block .syn-op       { color: var(--syn-op); }

/* Blinking cursor */
.cursor {
    display: inline-block;
    color: white;
    animation: blink 1.1s step-end infinite;
}

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

/* Hero CTA */
.hero-cta {
    flex: 1;
    min-width: 260px;
    max-width: 460px;
}

.hero-cta h1 {
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.accent-text {
    color: var(--vsc-accent);
}

.hero-tagline {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    color: var(--syn-comment);
}

.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-code);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--t-base);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--vsc-accent);
    color: white;
    border-color: var(--vsc-accent);
}

.btn-primary:hover {
    background: var(--vsc-accent-dk);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 122, 204, 0.45);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--vsc-border-hi);
}

.btn-secondary:hover {
    background: var(--vsc-hover);
    color: white;
    border-color: var(--text-muted);
}

/* ===================================
   Sections
   =================================== */
.section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--vsc-editor);
}

.section:nth-child(even) {
    background: var(--vsc-sidebar);
}

.section-header {
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
}

.section-title {
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 0.875rem;
    color: var(--syn-comment);
    margin: 0;
    font-family: var(--font-code);
}

.section-close {
    font-family: var(--font-code);
    font-size: 1rem;
    text-align: center;
    margin-top: var(--spacing-md);
    color: var(--syn-keyword);
}

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

.contact-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-family: var(--font-ui);
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.bc-sep { color: var(--vsc-border-hi); }
.bc-active { color: var(--text-secondary); }

/* ===================================
   Services Grid
   =================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: var(--spacing-md);
}

.service-card {
    background: var(--vsc-sidebar);
    border: 1px solid var(--vsc-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--t-base);
}

.section:nth-child(even) .service-card {
    background: var(--vsc-editor);
}

.service-card:hover {
    border-color: var(--vsc-accent);
    box-shadow: 0 0 0 1px var(--vsc-accent), var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    background: var(--vsc-tab-bar);
    border-bottom: 1px solid var(--vsc-border);
    font-family: var(--font-code);
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.card-filename { color: var(--text-secondary); }

.service-body {
    padding: 1.5rem;
}

.service-icon {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.service-card h3 {
    color: var(--syn-type);
    margin-bottom: 0.6rem;
}

.service-card p {
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}

/* ===================================
   Products Grid
   =================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: var(--spacing-md);
}

.product-card {
    background: var(--vsc-editor);
    border: 1px solid var(--vsc-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--t-base);
}

.section:nth-child(even) .product-card {
    background: var(--vsc-tab-inactive);
}

.product-card:hover {
    border-color: var(--vsc-accent);
    box-shadow: 0 0 0 1px var(--vsc-accent), var(--shadow-md);
    transform: translateY(-2px);
}

.product-tab-bar {
    background: var(--vsc-tab-bar);
    display: flex;
    border-bottom: 1px solid var(--vsc-border);
}

.product-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--vsc-tab-inactive);
}

.product-tab.active {
    background: var(--vsc-tab-active);
    border-top: 1px solid var(--vsc-accent);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    filter: brightness(0.8) saturate(0.9);
    transition: var(--t-base);
    display: block;
}

.product-card:hover .product-image {
    filter: brightness(0.95) saturate(1);
}

.product-content {
    padding: 1.25rem;
}

.product-card h3 {
    font-family: var(--font-ui);
    font-size: 0.95rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

.product-card p {
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   Features List
   =================================== */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--vsc-sidebar);
    border: 1px solid var(--vsc-border);
    border-radius: var(--radius-md);
    transition: var(--t-base);
}

.section:nth-child(even) .feature-item {
    background: var(--vsc-tab-inactive);
}

.feature-item:hover {
    border-color: var(--vsc-border-hi);
    background: var(--vsc-hover);
}

.feature-icon {
    font-size: 1rem;
    color: var(--syn-type);
    flex-shrink: 0;
    padding-top: 0.1rem;
    font-family: var(--font-code);
    font-weight: 600;
}

.feature-content h4 {
    color: var(--syn-fn);
    margin-bottom: 0.4rem;
}

.feature-content p {
    font-size: 0.875rem;
    line-height: 1.65;
    margin: 0;
}

/* ===================================
   Terminal Block
   =================================== */
.terminal-block {
    margin-top: var(--spacing-lg);
    border: 1px solid var(--vsc-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.terminal-header {
    background: #2d2d2d;
    padding: 0.45rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--vsc-border);
}

.terminal-title {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.terminal-actions {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
}

.terminal-body {
    background: #0d0d0d;
    padding: 1.25rem 1.5rem;
    font-family: var(--font-code);
    font-size: 0.875rem;
    line-height: 1.6;
}

.term-prompt { color: var(--syn-type); }
.term-cmd    { color: var(--text-primary); }

.term-output {
    color: var(--text-secondary);
    padding: 0.5rem 0 0.5rem 1rem;
    border-left: 2px solid var(--vsc-border);
    margin: 0.4rem 0 0.6rem;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ===================================
   Contact Form
   =================================== */
.contact-form {
    background: var(--vsc-sidebar);
    border: 1px solid var(--vsc-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-code);
    font-size: 0.82rem;
    color: var(--text-muted);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.65rem 0.9rem;
    background: var(--vsc-editor);
    border: 1px solid var(--vsc-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-code);
    font-size: 0.875rem;
    transition: var(--t-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--vsc-accent);
    box-shadow: 0 0 0 1px var(--vsc-accent);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-button {
    width: 100%;
    padding: 0.8rem 2rem;
    background: var(--vsc-accent);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-code);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--t-base);
    position: relative;
    overflow: hidden;
}

.form-button:hover {
    background: var(--vsc-accent-dk);
    box-shadow: 0 4px 14px rgba(0, 122, 204, 0.45);
}

.form-message {
    margin-top: 1rem;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-code);
    font-size: 0.82rem;
    display: none;
    border-left: 3px solid;
}

.form-message.success {
    background: rgba(78, 201, 176, 0.1);
    color: var(--syn-type);
    border-left-color: var(--syn-type);
    display: block;
}

.form-message.error {
    background: rgba(244, 71, 71, 0.1);
    color: #f44747;
    border-left-color: #f44747;
    display: block;
}

/* ===================================
   Footer — VS Code Status Bar
   =================================== */
.footer {
    background: var(--vsc-accent);
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.2rem 0.5rem;
    min-height: 24px;
    font-size: 0.72rem;
    font-family: var(--font-ui);
    gap: 0.5rem;
}

.statusbar-left,
.statusbar-right {
    display: flex;
    align-items: center;
}

.statusbar-center {
    flex: 1;
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 0.68rem;
}

.statusbar-item {
    padding: 0 0.55rem;
    color: rgba(255,255,255,0.9);
    white-space: nowrap;
    border-radius: 2px;
    transition: var(--t-fast);
    cursor: default;
    line-height: 22px;
}

.statusbar-item:hover { background: rgba(255,255,255,0.15); }

.statusbar-item a { color: rgba(255,255,255,0.9); }
.statusbar-item a:hover { color: white; }

.sb-accent { background: rgba(0,0,0,0.15); }

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 3rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

    .menu-toggle { display: flex; }

    .titlebar-subtitle { display: none; }

    /* Mobile nav dropdown */
    .nav-tabbar {
        position: fixed;
        top: 36px;
        left: 0;
        right: 0;
        transform: translateX(-100%);
        transition: var(--t-base);
        flex-direction: column;
        border-bottom: 1px solid var(--vsc-border);
        z-index: 999;
    }

    .nav-tabbar.active { transform: translateX(0); }

    .nav-tabs { flex-direction: column; width: 100%; }

    .nav-tab {
        padding: 0.8rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid var(--vsc-border);
    }

    /* Hero */
    .hero {
        flex-direction: column;
        align-items: stretch;
        padding-top: 80px;
        gap: 2rem;
    }

    .editor-window {
        min-width: unset;
        max-width: 100%;
    }

    .hero-cta { max-width: 100%; }

    .hero-buttons { flex-direction: column; }

    .btn { justify-content: center; }

    /* Grids */
    .services-grid,
    .products-grid,
    .features-list {
        grid-template-columns: 1fr;
    }

    .contact-form { padding: var(--spacing-md); }

    .statusbar-center { display: none; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }

    .statusbar-right .statusbar-item:not(:first-child) { display: none; }
}

/* ===================================
   Utilities
   =================================== */
.text-center { text-align: center; }
