/* --- SureSen Master Engine (Full Detail & Responsive) --- */
:root {
    --bg-main: #0d1117;       
    --bg-card: rgba(22, 27, 34, 0.85); 
    --border: #30363d;        
    --text-main: #c9d1d9;     
    --brand-blue: #58a6ff;    
    --brand-accent: #f2a900;  
    --code-green: #7ee787;
}

html, body { height: 100%; margin: 0; padding: 0; overflow-x: hidden; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); 
    background-color: var(--bg-main);
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundScroll 40s linear infinite;
    display: flex;
    flex-direction: column;
}

@keyframes backgroundScroll { from { background-position: 0 0; } to { background-position: 50px 50px; } }

header {
    background: var(--bg-card);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

header img { max-width: 130px; transition: 0.3s; }
header img:hover { transform: scale(1.05); }

nav { margin-top: 15px; display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
nav a { color: var(--text-main); text-decoration: none; font-family: monospace; padding: 8px 15px; transition: 0.3s; }
nav a:hover { color: var(--brand-blue); }

main {
    padding: 40px;
    max-width: 850px;
    width: 90%;
    margin: 40px auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    flex: 1 0 auto;
}

h1, h2 { font-family: monospace; color: white; margin-top: 0; }

.service-block, .project-card, .terminal-window {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 25px;
    margin: 25px 0;
    transition: 0.3s;
}

.service-block:hover, .project-card:hover { border-color: var(--brand-blue); transform: translateY(-3px); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin: 30px 0; }
.stat-item { text-align: center; padding: 15px; background: rgba(13, 17, 23, 0.5); border: 1px solid var(--border); border-radius: 8px; }
.stat-number { display: block; font-size: 1.5rem; font-weight: bold; color: var(--brand-blue); font-family: monospace; }
.stat-label { font-size: 0.75rem; text-transform: uppercase; color: #8b949e; }

/* Workflow & Skills */
.workflow-step { padding: 10px 0; border-bottom: 1px solid rgba(48, 54, 61, 0.5); font-size: 0.9rem; }
.skill-container { margin-bottom: 18px; }
.skill-label { display: flex; justify-content: space-between; font-family: monospace; font-size: 0.8rem; margin-bottom: 5px; color: var(--brand-blue); }
.skill-bar { width: 100%; height: 8px; background: #1c2128; border-radius: 4px; border: 1px solid var(--border); overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, var(--brand-blue), var(--code-green)); box-shadow: 0 0 10px rgba(88, 166, 255, 0.4); }

.status-tag { font-size: 0.7rem; padding: 2px 8px; border-radius: 12px; border: 1px solid var(--brand-blue); color: var(--brand-blue); }

/* Form Elements */
form label { display: block; font-family: monospace; font-size: 0.75rem; color: var(--brand-blue); margin-top: 20px; text-transform: uppercase; }
input, textarea { width: 100%; background: var(--bg-main); border: 1px solid var(--border); color: white; padding: 12px; border-radius: 6px; margin-top: 5px; box-sizing: border-box; }
.submit-btn { background: #238636; color: white; padding: 12px 30px; border-radius: 6px; border: none; font-weight: 600; cursor: pointer; display: inline-block; margin-top: 20px; transition: 0.3s; width: 100%; }

@media (min-width: 600px) { .submit-btn { width: auto; } }

footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 30px 0;
    text-align: center;
    font-family: monospace;
    font-size: 0.8rem;
    color: #8b949e;
}

/* Mobile Breakpoints */
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
    main { padding: 20px; width: 95%; }
    h1 { font-size: 1.5rem; }
}