/* =====================================================
   DT COMPUTERS - MATRIX DARK THEME
   ===================================================== */

/* --- CSS Custom Properties --- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0d0d0d;
    --bg-tertiary: #111111;
    --bg-card: #0f0f0f;
    --bg-card-hover: #141414;

    --matrix-green: #00ff41;
    --matrix-green-dim: #00cc33;
    --matrix-green-dark: #003300;
    --neon-red: #ff0040;
    --neon-red-dim: #cc0033;
    --neon-cyan: #00d4ff;
    --neon-purple: #a855f7;

    --text-primary: #e0e0e0;
    --text-secondary: #999999;
    --text-dim: #555555;

    --border-color: #1a1a1a;
    --border-glow: #00ff4120;

    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;

    --nav-height: 70px;
    --section-padding: 100px 0;
    --container-width: 1200px;
    --transition-speed: 0.3s;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--matrix-green);
    color: var(--bg-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--matrix-green-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--matrix-green-dim);
}

/* --- Matrix Rain Canvas --- */
#matrix-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-speed) ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom-color: var(--matrix-green-dark);
    box-shadow: 0 2px 30px rgba(0, 255, 65, 0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo-dt {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--neon-red), #cc0000);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.logo-computers {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all var(--transition-speed) ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.05);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--matrix-green);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 60%;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--matrix-green);
    margin: 6px 0;
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* --- Sections --- */
.section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
    min-height: 100vh;
    background: rgba(10, 10, 10, 0.8);
}

.section:nth-child(even) {
    background: rgba(13, 13, 13, 0.85);
}

.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--matrix-green-dim);
    opacity: 0.6;
    display: block;
    margin-bottom: 10px;
}

.section-tag-close {
    display: block;
    text-align: center;
    margin-top: 60px;
    opacity: 0.3;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.header-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
    margin: 0 auto 20px;
}

.section-subtitle {
    font-family: var(--font-mono);
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--matrix-green);
    margin: 50px 0 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Glitch effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch:hover::before {
    animation: glitch-1 0.3s linear;
    color: var(--neon-red);
    opacity: 0.8;
}

.glitch:hover::after {
    animation: glitch-2 0.3s linear;
    color: var(--neon-cyan);
    opacity: 0.8;
}

@keyframes glitch-1 {
    0%   { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 0); }
    20%  { clip-path: inset(60% 0 10% 0); transform: translate(3px, 0); }
    40%  { clip-path: inset(40% 0 30% 0); transform: translate(-3px, 0); }
    60%  { clip-path: inset(80% 0 5% 0);  transform: translate(2px, 0); }
    80%  { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 0); }
    100% { clip-path: inset(50% 0 30% 0); transform: translate(0); }
}

@keyframes glitch-2 {
    0%   { clip-path: inset(70% 0 10% 0); transform: translate(3px, 0); }
    20%  { clip-path: inset(10% 0 70% 0); transform: translate(-3px, 0); }
    40%  { clip-path: inset(50% 0 20% 0); transform: translate(3px, 0); }
    60%  { clip-path: inset(20% 0 60% 0); transform: translate(-2px, 0); }
    80%  { clip-path: inset(80% 0 5% 0);  transform: translate(2px, 0); }
    100% { clip-path: inset(30% 0 40% 0); transform: translate(0); }
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: var(--nav-height);
    background: radial-gradient(ellipse at center, rgba(10, 26, 10, 0.7) 0%, rgba(10, 10, 10, 0.75) 70%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.logo-container {
    margin-bottom: 40px;
    animation: fadeInDown 1s ease;
}

.hero-logo {
    width: 500px;
    max-width: 90vw;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(255, 0, 64, 0.3));
}

/* Terminal in Hero */
.hero-terminal {
    max-width: 600px;
    margin: 0 auto 50px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeInUp 1s ease 0.3s backwards;
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-left: 10px;
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    min-height: 60px;
}

.prompt {
    color: var(--matrix-green);
}

.typed-text {
    color: var(--text-primary);
}

.cursor {
    color: var(--matrix-green);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Scroll Indicator */
.scroll-indicator {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--matrix-green-dim);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    animation: fadeInUp 1s ease 0.6s backwards, bounce 2s infinite 1.6s;
    transition: color var(--transition-speed);
}

.scroll-indicator:hover {
    color: var(--matrix-green);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.code-comment {
    font-family: var(--font-mono);
    color: var(--matrix-green-dim);
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 8px !important;
}

.highlight {
    color: var(--matrix-green);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: all var(--transition-speed) ease;
}

.stat-card:hover {
    border-color: var(--matrix-green-dark);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.05);
    transform: translateY(-3px);
}

.stat-card i {
    font-size: 2rem;
    color: var(--matrix-green);
    margin-bottom: 12px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 35px 25px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.service-card:hover {
    border-color: var(--matrix-green-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.08);
}

.service-card .service-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
}

.service-card:hover .service-border {
    opacity: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 255, 65, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--matrix-green);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- OS Cards --- */
.os-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
    margin-bottom: 10px;
}

.os-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.os-card:hover {
    border-color: var(--matrix-green-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.08);
}

.os-card-visual {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.os-icon-large {
    font-size: 3rem;
    opacity: 0.4;
    position: absolute;
    left: 25px;
}

.os-version {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    position: absolute;
    right: 25px;
    opacity: 0.2;
}

/* OS Visual Backgrounds */
.win11-bg {
    background: linear-gradient(135deg, #0078d4 0%, #004a8f 50%, #002d5a 100%);
}
.win11-bg .os-icon-large { color: #5bc0ff; }
.win11-bg .os-version { color: #5bc0ff; }

.win10-bg {
    background: linear-gradient(135deg, #0078d4 0%, #005a9e 50%, #003f6e 100%);
}
.win10-bg .os-icon-large { color: #66b5ff; }
.win10-bg .os-version { color: #66b5ff; }

.server2025-bg {
    background: linear-gradient(135deg, #2d1b69 0%, #1a0f40 50%, #0d0820 100%);
}
.server2025-bg .os-icon-large { color: #7c5cbf; }
.server2025-bg .os-version { color: #7c5cbf; }

.server2022-bg {
    background: linear-gradient(135deg, #1b3a5c 0%, #0f2440 50%, #081520 100%);
}
.server2022-bg .os-icon-large { color: #4a8fc7; }
.server2022-bg .os-version { color: #4a8fc7; }

.server2019-bg {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 50%, #0d1318 100%);
}
.server2019-bg .os-icon-large { color: #5d8aa8; }
.server2019-bg .os-version { color: #5d8aa8; }

.ubuntu-bg {
    background: linear-gradient(135deg, #e95420 0%, #a83a15 50%, #6e250e 100%);
}
.ubuntu-bg .os-icon-large { color: #f7a07a; }
.ubuntu-bg .os-version { color: #f7a07a; }

.mint-bg {
    background: linear-gradient(135deg, #6db442 0%, #4e8130 50%, #305020 100%);
}
.mint-bg .os-icon-large { color: #a8d88a; }
.mint-bg .os-version { color: #a8d88a; }

.fedora-bg {
    background: linear-gradient(135deg, #294172 0%, #1a2d52 50%, #0d1a30 100%);
}
.fedora-bg .os-icon-large { color: #6185b5; }
.fedora-bg .os-version { color: #6185b5; }

.debian-bg {
    background: linear-gradient(135deg, #a80030 0%, #700020 50%, #400012 100%);
}
.debian-bg .os-icon-large { color: #e06080; }
.debian-bg .os-version { color: #e06080; }

.ubuntu-server-bg {
    background: linear-gradient(135deg, #772953 0%, #50193a 50%, #2d0e21 100%);
}
.ubuntu-server-bg .os-icon-large { color: #c06090; }
.ubuntu-server-bg .os-version { color: #c06090; }

.rocky-bg {
    background: linear-gradient(135deg, #10b981 0%, #0b7a56 50%, #064d36 100%);
}
.rocky-bg .os-icon-large { color: #6eecc0; }
.rocky-bg .os-version { color: #6eecc0; }

.proxmox-bg {
    background: linear-gradient(135deg, #e57000 0%, #a05000 50%, #603000 100%);
}
.proxmox-bg .os-icon-large { color: #f0a050; }
.proxmox-bg .os-version { color: #f0a050; }

.os-card-content {
    padding: 20px 25px 25px;
}

.os-card-content h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.os-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.os-badge.current {
    background: rgba(0, 255, 65, 0.1);
    color: var(--matrix-green);
    border: 1px solid var(--matrix-green-dark);
}

.os-badge.supported {
    background: rgba(0, 212, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.os-badge.eol {
    background: rgba(255, 0, 64, 0.1);
    color: var(--neon-red);
    border: 1px solid rgba(255, 0, 64, 0.3);
}

.os-features {
    list-style: none;
    margin-bottom: 15px;
}

.os-features li {
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.os-features li i {
    color: var(--matrix-green);
    margin-right: 8px;
    font-size: 0.75rem;
}

.os-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.os-meta span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
}

.os-meta span i {
    margin-right: 6px;
    color: var(--matrix-green-dark);
}

/* --- Downloads Section --- */
.downloads-category {
    margin-bottom: 20px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px 20px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

.download-card:hover {
    border-color: var(--matrix-green-dark);
    background: var(--bg-card-hover);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.05);
}

.download-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.download-icon.win { background: rgba(0, 120, 212, 0.15); color: #0078d4; }
.download-icon.win-server { background: rgba(45, 27, 105, 0.2); color: #7c5cbf; }
.download-icon.ubuntu { background: rgba(233, 84, 32, 0.15); color: #e95420; }
.download-icon.mint { background: rgba(109, 180, 66, 0.15); color: #6db442; }
.download-icon.fedora { background: rgba(41, 65, 114, 0.2); color: #6185b5; }
.download-icon.debian { background: rgba(168, 0, 48, 0.15); color: #e06080; }
.download-icon.rocky { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.download-icon.proxmox { background: rgba(229, 112, 0, 0.15); color: #e57000; }
.download-icon.tool { background: rgba(0, 255, 65, 0.08); color: var(--matrix-green); }
.download-icon.teamviewer { background: rgba(0, 127, 220, 0.15); color: #0078d4; }
.download-icon.dt-app { background: rgba(255, 0, 64, 0.1); color: var(--neon-red); border: 1px solid rgba(255, 0, 64, 0.2); }

/* DT Apps special styling */
.dt-apps-note {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    margin: -15px 0 20px;
    padding-left: 2px;
}

.dt-app-card {
    border-color: rgba(255, 0, 64, 0.15) !important;
}

.dt-app-card:hover {
    border-color: var(--neon-red-dim) !important;
    box-shadow: 0 5px 20px rgba(255, 0, 64, 0.08) !important;
}

.dt-app-card:hover .download-arrow {
    color: var(--neon-red) !important;
}

/* DT Apps dynamic states */
.dt-apps-loading,
.dt-apps-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-dim);
}

.dt-apps-loading i,
.dt-apps-empty i {
    margin-right: 8px;
    color: var(--matrix-green-dim);
}

.dt-app-meta {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.download-info {
    flex: 1;
    min-width: 0;
}

.download-info h4 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.download-info p {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.download-arrow {
    color: var(--text-dim);
    font-size: 0.85rem;
    transition: all var(--transition-speed) ease;
}

.download-card:hover .download-arrow {
    color: var(--matrix-green);
    transform: translateX(3px);
}

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 25px;
}

.portfolio-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.portfolio-card:hover {
    border-color: var(--matrix-green-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 255, 65, 0.08);
}

.portfolio-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a1a0a, #0d0d0d);
}

.portfolio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 3rem;
    color: var(--matrix-green);
    opacity: 0.3;
}

.portfolio-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
}

.portfolio-category {
    background: rgba(0, 0, 0, 0.7);
    color: var(--matrix-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    border: 1px solid var(--matrix-green-dark);
}

.portfolio-content {
    padding: 20px 25px;
}

.portfolio-content h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.portfolio-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tags span {
    background: rgba(0, 255, 65, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-dim);
    padding: 3px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h3,
.contact-form-wrapper h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--matrix-green);
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 255, 65, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--matrix-green);
    flex-shrink: 0;
    font-size: 1rem;
}

.contact-item strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.contact-social a {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
}

.contact-social a:hover {
    border-color: var(--matrix-green);
    color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.05);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.form-group label i {
    margin-right: 6px;
    color: var(--matrix-green-dim);
}

.form-group input,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--matrix-green-dark);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--matrix-green-dark), rgba(0, 255, 65, 0.15));
    border: 1px solid var(--matrix-green-dark);
    color: var(--matrix-green);
    padding: 14px 30px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.2), rgba(0, 255, 65, 0.1));
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.15);
    transform: translateY(-2px);
}

/* --- Footer --- */
#footer {
    position: relative;
    z-index: 1;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-matrix-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
    opacity: 0.5;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 50px 30px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-top: 10px;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 4px 0;
    transition: color var(--transition-speed) ease;
}

.footer-links a:hover {
    color: var(--matrix-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--matrix-green-dim);
    text-decoration: none;
}

.footer-tech {
    margin-top: 8px;
    font-size: 0.8rem !important;
}

/* --- Back to Top Button --- */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--matrix-green);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-speed) ease;
    z-index: 999;
}

#backToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#backToTop:hover {
    background: var(--matrix-green-dark);
    border-color: var(--matrix-green);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

/* --- Reveal Animations --- */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up { transform: translateY(50px); }
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0);
}

/* --- Scanline overlay (subtle) --- */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .os-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
        --nav-height: 60px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 5px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero-logo {
        width: 320px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .os-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 0 16px;
    }

    .nav-container {
        padding: 0 16px;
    }

    .hero-logo {
        width: 260px;
    }

    .section-header h2 {
        font-size: 1.4rem;
        letter-spacing: 1px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 18px 12px;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}
