/* --- Fonts --- */
@font-face { font-family: 'VegaPunk'; src: url('fonts/VegaPunk.ttf'); }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/JetBrainsMono.ttf'); font-weight: 100 900; }
@font-face { font-family: 'JetBrains Mono'; src: url('fonts/JetBrainsMono-Italic.ttf'); font-weight: 100 900; font-style: italic; }

/* --- Core Reset & Variables --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-black: #06020f;
    --midnight-purple: #1b0a2a;
    --sunset-orange: #ff5e3a;
    --solar-gold: #ffb703;
    --dark-surface: #12051c;
    --text-primary: #fff2e6;
    --text-muted: #8c7291;
}

body {
    background: linear-gradient(180deg, var(--bg-black) 60%, #17051c 85%, #2a082c 100%);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'JetBrains Mono', monospace;
    overflow-x: hidden;
}

.cyber-grid {
    position: absolute; width: 100%; height: 100%; z-index: -1;
    background-image: linear-gradient(rgba(255, 94, 58, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 94, 58, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* --- Fixed Header --- */
header {
    max-width: 1200px;
    margin: 1rem auto;
    width: calc(100% - 2rem);
    padding: 1rem 2rem;
    background-color: #0c0517;
    border-radius: 8px;
    /* Single clean gradient border */
    border: 1px solid var(--sunset-orange);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-group { display: flex; align-items: center; gap: 1.5rem; }
.logo { 
    font-family: 'VegaPunk', sans-serif; font-size: 2.7rem; letter-spacing: 2.4px;
    background: linear-gradient(45deg, var(--solar-gold), var(--sunset-orange));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 12px rgba(255, 94, 58, 0.4));
}
.header-mark { 
    height: 60px; 
    width: auto; 
    transition: 0.4s; 
    display: block;      /* Ensures no extra line-height spacing */
    border: none;        /* Kills any potential browser default border */
    outline: none;       /* Kills focus outlines */
    background: none;    /* Removes any residual background color */
}

/* Add this wrapper fix */
.home-link {
    display: flex;
    align-items: center;
    filter: drop-shadow(0 0 10px rgba(255, 94, 58, 0.3)); /* Moved here */
}

nav { display: flex; gap: 2rem; }
nav a { 
    text-decoration: none; font-size: 1.1rem; font-weight: bold;
    background: linear-gradient(45deg, var(--solar-gold), var(--sunset-orange));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    transition: 0.3s;
}
nav a:hover { filter: drop-shadow(0 0 8px var(--solar-gold)); transform: translateY(-2px); }

/* --- Typography --- */
h1 { font-size: 3.5rem; font-weight: 400; line-height: 1.1; margin-bottom: 1.5rem; background: linear-gradient(45deg, var(--sunset-orange), var(--solar-gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 8px rgba(255, 94, 58, 0.3)); }
.subtitle { font-size: 1.1rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 2.5rem; max-width: 600px; }
.text-muted { color: var(--text-muted); }

/* --- Main Layout --- */
main { flex: 1; display: flex; flex-direction: column; align-items: center; max-width: 900px; width: 100%; margin: 0 auto; padding: 4rem 2rem; }
.section-block { width: 100%; padding-top: 4rem; border-top: 1px dashed rgba(255, 94, 58, 0.15); margin-top: 4rem; }
.section-header { font-size: 0.85rem; color: var(--solar-gold); letter-spacing: 3px; margin-bottom: 2rem; font-weight: bold; }

/* --- Services Grid --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; width: 100%; }
.service-card { background-color: var(--dark-surface); border: 1px solid rgba(140, 114, 145, 0.2); padding: 2rem; border-radius: 4px; transition: 0.3s; }
.service-card:hover { border-color: var(--sunset-orange); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(255, 94, 58, 0.08); }
.card-icon { font-size: 1.8rem; margin-bottom: 1rem; filter: drop-shadow(0 0 8px var(--sunset-orange)); }
.service-card h2, .service-card h3, .service-card h4 { font-size: 1.2rem; color: var(--text-primary); margin-bottom: 0.75rem; font-weight: 400; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* --- Terminal Module --- */
.terminal-container { width: 100%; max-width: 650px; background-color: #0c0517; border: 1px solid rgba(255, 94, 58, 0.2); border-radius: 6px; box-shadow: 0 15px 40px rgba(6, 2, 15, 0.7); margin: 2rem 0; }
.terminal-bar { background-color: #120722; padding: 0.6rem 1rem; display: flex; align-items: center; border-bottom: 1px solid rgba(255, 94, 58, 0.1); }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.terminal-dot.close { background-color: #ff5f56; } .terminal-dot.minimize { background-color: #ffbd2e; } .terminal-dot.expand { background-color: #27c93f; }
.terminal-body { padding: 1.5rem; }
.terminal-inline-btn { background: none; border: none; color: var(--sunset-orange); cursor: pointer; text-decoration: underline; font-weight: bold; }

/* --- Buttons & Footer --- */
.cyber-btn { background: transparent; color: var(--sunset-orange); border: 1px solid var(--sunset-orange); padding: 1rem 2rem; cursor: pointer; transition: 0.3s; }
.cyber-btn:hover { background: var(--sunset-orange); color: var(--bg-black); }
footer { display: flex; justify-content: space-between; padding: 2rem; border-top: 1px solid rgba(27, 10, 42, 0.5); font-size: 0.75rem; color: var(--text-muted); }

/* --- Animations --- */
.blink { animation: blink-cursor 1s step-end infinite; }
@keyframes blink-cursor { 50% { visibility: hidden; } }

/* --- Responsive --- */
@media (max-width: 1000px) {
    header { flex-direction: column; gap: 1rem; padding: 1rem; }
    .header-mark { height: 50px; }
    nav { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}